From fb336f319c71291fa09de3e7f67f1ccfab3cb7c8 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Sat, 23 Sep 2023 15:58:40 +0800
Subject: [PATCH] 媒体搜索框
---
src/store/common.ts | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/store/common.ts b/src/store/common.ts
index a6c09b2..a733a98 100644
--- a/src/store/common.ts
+++ b/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,
--
Gitblit v1.9.3