This commit is contained in:
X1627315083@163.com
2026-02-26 10:19:51 +08:00
parent 8ebaa46211
commit ccc6d2cb7b
9 changed files with 123 additions and 26 deletions

View File

@@ -3,13 +3,12 @@ import { ref, computed } from 'vue'
export const useProjectStore = defineStore('project', () => {
const state = ref({// 项目参数
id: '',
nodeId: '',
})
const setProject = (obj: any) => {
for (const key in obj) {
if(state.value[key]){
state.value[key] = obj[key]
}
state.value[key] = obj[key]
}
}
@@ -23,3 +22,4 @@ export const useProjectStore = defineStore('project', () => {
setId
}
})