fix:照明系统多选功能完善,引入全局变量projectId,部分交互逻辑修改

This commit is contained in:
chenpingsen
2024-07-29 17:03:10 +08:00
parent 16d7f81f0e
commit b55304ef7f
5 changed files with 127 additions and 56 deletions

View File

@@ -3,7 +3,14 @@ import { defineStore } from 'pinia';
export const items = defineStore({
id: 'items',
state() {
return { list: [], count: 10 };
return {
list: [],
count: 10,
// 当前项目ID
projectId: 'HLlmTZp8',
// 站点ID
siteId: undefined,
};
},
getters: {
double: (state: any) => state.count * 2,