Browse Source

feat: 修复属性出错

rindy 8 tháng trước cách đây
mục cha
commit
2b6b1c1d4f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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