Преглед на файлове

feat: 修复属性出错

rindy преди 10 месеца
родител
ревизия
2b6b1c1d4f
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/store/main.ts

+ 2 - 1
src/store/main.ts

@@ -107,7 +107,8 @@ export const useMainStore = defineStore('main', {
           baseSetting: any[]
         }
       }
-      if (this.sceneInfo) {
+       //@ts-ignore
+      if (this.sceneInfo && this.sceneInfo.scrbInfo) {
         //@ts-ignore
         if (this.sceneInfo.scrbInfo.aiSetting) {
           //@ts-ignore