浏览代码

feat: save

gemercheung 9 月之前
父节点
当前提交
32b9acc4fa
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/store/main.ts

+ 3 - 3
src/store/main.ts

@@ -102,13 +102,13 @@ export const useMainStore = defineStore('main', {
         }
       }
       if (this.sceneInfo) {
-        if (this.sceneInfo?.scrbInfo.aiSetting) {
+        if (this.sceneInfo.scrbInfo.aiSetting) {
           this.aiSetting = this.sceneInfo.scrbInfo.aiSetting
         }
-        if ('navigation' in this.sceneInfo.scrbInfo) {
+        if (this.sceneInfo.scrbInfo.navigation) {
           this.navigation = this.sceneInfo.scrbInfo.navigation
         }
-        if ('baseSetting' in this.sceneInfo.scrbInfo) {
+        if (this.sceneInfo.scrbInfo.baseSetting) {
           this.basicConfig = this.sceneInfo.scrbInfo.baseSetting
         }
       }