xuqiang 4 anni fa
parent
commit
1bd467fe00

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

@@ -101,10 +101,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: {

+ 4 - 5
src/main/pc-space/src/views/Home.vue

@@ -179,16 +179,15 @@ export default {
                 {
                 {
                     query: {
                     query: {
                         del: false,
                         del: false,
-                        type: null
+                        type: 'PC_TITLE'
                     }
                     }
                 },
                 },
                 { body: 'json' }
                 { body: 'json' }
             )
             )
             .then(res => {
             .then(res => {
-                // console.log(res);
-                this.banners = res.content.filter(item => {
-                    return item.name === '首页大图';
-                });
+                console.log(res);
+                this.banners = res.content;
+                console.log(this.banners[0].pic);
             });
             });
     },
     },
     methods: {
     methods: {