소스 검색

修复bug

zhaoke 3 년 전
부모
커밋
b89f7b8c55
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/App.vue

+ 4 - 2
src/App.vue

@@ -104,8 +104,10 @@ export default {
     },
   },
   created () {
-    const { LoginError } = typeof this.systemSet === "string" ? JSON.parse(this.systemSet) : this.systemSet;
-    this.LoginError = LoginError;
+    if (this.systemSet) {
+      const { LoginError } = typeof this.systemSet === "string" ? JSON.parse(this.systemSet) : this.systemSet;
+      this.LoginError = LoginError;
+    }
   },
   mounted () {
     const num = Number(this.errorNum);