Browse Source

修复bug

zhaoke 3 years ago
parent
commit
b89f7b8c55
1 changed files with 4 additions and 2 deletions
  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);