xuqiang 4 лет назад
Родитель
Сommit
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.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: {