Skip to content
  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in

likaiwen / yahabbi-web

Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • yahabbi-web
  • src
  • store
  • commonStore.js
  • mm ven's avatar
    ✨ feat: init · 3d4fba61
    mm ven committed Jun 19, 2025
    3d4fba61 Browse Files
commonStore.js 197 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12
import { defineStore } from 'pinia'

export const useCommonStore = defineStore('common', {
  state: () => ({
    index: 0
  }),
  actions: {
    setIndex(val) {
      this.index = val
    }
  }
})