Bladeren bron

feat: save

gemercheung 9 maanden geleden
bovenliggende
commit
32b9acc4fa
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  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
         }
       }