From f2346c813c022d871a9bf5e8b75c0db46ee80116 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Mon, 25 Sep 2023 09:57:13 +0800
Subject: [PATCH] 把设备添加项目中
---
src/store/common.ts | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/store/common.ts b/src/store/common.ts
index a733a98..b886078 100644
--- a/src/store/common.ts
+++ b/src/store/common.ts
@@ -3,7 +3,8 @@
const state = () => ({
projectId: null as string | null,
dockSns: null as string | null,
- snList: [] as string[]
+ snList: [] as string[],
+ projectName: '' as string
})
export type RootStateType = ReturnType<typeof state>
const mutations: MutationTree<RootStateType> = {
@@ -17,6 +18,9 @@
SET_SN_LIST (state, snList: string[]) {
state.snList = snList
+ },
+ SET_PROJECT_NAME (state, projectName: string) {
+ state.projectName = projectName
}
}
export default {
--
Gitblit v1.9.3