xuqiang пре 4 година
родитељ
комит
676e34b654
1 измењених фајлова са 6 додато и 4 уклоњено
  1. 6 4
      src/main/pc-space/src/components/PageHeader.vue

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

@@ -106,10 +106,12 @@ export default {
             this.Login();
             this.Login();
         });
         });
         this.getActive();
         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: {
     methods: {