gemercheung 9 ay önce
ebeveyn
işleme
32b9acc4fa
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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
         }
       }