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
         }
       }