husq
2023-09-22 b3de47a55bb968797abb16d48cd9b4522a11a7f1
src/store/common.ts
@@ -1,13 +1,23 @@
import { MutationTree } from 'vuex'
const state = () => ({
  projectId: null as string | null
  projectId: null as string | null,
  dockSns: null as string | null,
  snList: [] as string[]
})
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
  },
  SET_SN_LIST (state, snList: string[]) {
    state.snList = snList
  }
}
export default {
  state,