guoshilong
2023-09-08 cee338f18d22bbbb989d79c0add082fdb4e2b8ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { MutationTree } from 'vuex'
 
const state = () => ({
  projectId: null as string | null
})
export type RootStateType = ReturnType<typeof state>
const mutations: MutationTree<RootStateType> = {
  SET_PROJECT_ID (state, projectId: string) {
    state.projectId = projectId
  },
}
export default {
  state,
  mutations
}