fix: 补充误删的setProjectInfo代码

This commit is contained in:
奔跑的面条 2023-09-18 17:15:22 +08:00
parent b825e41707
commit c228bc97fb

View File

@ -201,6 +201,10 @@ export const useChartEditStore = defineStore({
setEditCanvasConfig<T extends keyof EditCanvasConfigType, K extends EditCanvasConfigType[T]>(key: T, value: K) { setEditCanvasConfig<T extends keyof EditCanvasConfigType, K extends EditCanvasConfigType[T]>(key: T, value: K) {
this.editCanvasConfig[key] = value this.editCanvasConfig[key] = value
}, },
// * 设置 peojectInfo 数据项
setProjectInfo<T extends keyof ProjectInfoType, K extends ProjectInfoType[T]>(key: T, value: K) {
this.projectInfo[key] = value
},
// * 设置右键菜单 // * 设置右键菜单
setRightMenuShow(value: boolean) { setRightMenuShow(value: boolean) {
this.rightMenuShow = value this.rightMenuShow = value