From 8e9a7434bd72959be5d8a2c7882189a800b85dfd Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Tue, 19 Sep 2023 16:59:21 +0800
Subject: [PATCH] 修改默认值
---
src/store/common.ts | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/store/common.ts b/src/store/common.ts
index a6c09b2..ea97352 100644
--- a/src/store/common.ts
+++ b/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,
--
Gitblit v1.9.3