xuqiang 4 rokov pred
rodič
commit
676e34b654

+ 6 - 4
src/main/pc-space/src/components/PageHeader.vue

@@ -106,10 +106,12 @@ export default {
             this.Login();
         });
         this.getActive();
-        if (this.userInfo.authStatus !== 'NOT_AUTH') {
-            setTimeout(() => {
-                this.add();
-            }, 1000);
+        if (this.isLogin) {
+            if (this.userInfo.authStatus !== 'NOT_AUTH') {
+                setTimeout(() => {
+                    this.add();
+                }, 1000);
+            }
         }
     },
     methods: {