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