浏览代码

修复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);