husq
2023-09-21 e91e29a9a6dd4f7cb436da3c5c59fdd750e35129
src/store/common.ts
@@ -1,13 +1,18 @@
import { MutationTree } from 'vuex'
const state = () => ({
  projectId: null as string | null
  projectId: null as string | null,
  dockSns: null as string | null,
})
export type RootStateType = ReturnType<typeof state>
const mutations: MutationTree<RootStateType> = {
  SET_PROJECT_ID (state, projectId: string) {
    state.projectId = projectId
  },
  SET_DOCK_SN (state, dockSns: string) {
    state.dockSns = dockSns
  }
}
export default {
  state,