liyongli 3 жил өмнө
parent
commit
55ac81a8b7

+ 13 - 13
src/appMinxin/getList.js

@@ -3,7 +3,7 @@ import {
   getPlatform,
   getList,
   getAllPlatform,
-  getCould,
+  // getCould,
 } from "@/api/getList";
 
 export default {
@@ -123,18 +123,18 @@ export default {
           return v;
         });
       });
-      let Filename = this.$utils.getUrl("id");
-      getCould({}, this.$store.state.p[Filename]).then(res => {
-        let ori = res || [];
-        let listOri = [];
-        ori.map(v => {
-          listOri.push({
-            x: v.name,
-            value: v.value - 0,
-          });
-        });
-        this.listOri = listOri;
-      });
+      // let Filename = this.$utils.getUrl("id");
+      // getCould({}, this.$store.state.p[Filename]).then(res => {
+      //   let ori = res || [];
+      //   let listOri = [];
+      //   ori.map(v => {
+      //     listOri.push({
+      //       x: v.name,
+      //       value: v.value - 0,
+      //     });
+      //   });
+      //   this.listOri = listOri;
+      // });
 
       this.getAllWeibo();
     },

+ 13 - 13
src/appMinxin/getListSecond.js

@@ -4,7 +4,7 @@ import {
     getPlatform,
     getList,
     getAllPlatform,
-    getCould,
+    // getCould,
 } from "@/api/getList";
 
 export default {
@@ -102,18 +102,18 @@ export default {
                     return v;
                 });
             });
-            let Filename = this.$utils.getUrl("id");
-            getCould({}, this.$store.state.p[Filename]).then(res => {
-                let ori = res || []
-                let listOri = [];
-                ori.map(v => {
-                    listOri.push({
-                        x: v.name,
-                        value: v.value
-                    })
-                })
-                this.listOri = listOri;
-            })
+            // let Filename = this.$utils.getUrl("id");
+            // getCould({}, this.$store.state.p[Filename]).then(res => {
+            //     let ori = res || []
+            //     let listOri = [];
+            //     ori.map(v => {
+            //         listOri.push({
+            //             x: v.name,
+            //             value: v.value
+            //         })
+            //     })
+            //     this.listOri = listOri;
+            // })
 
             this.getAllWeibo()
         },

+ 2 - 1
src/main.js

@@ -13,7 +13,8 @@ router.beforeEach((to, from, next) => {
   window.local_timeout && window.clearInterval(window.local_timeout);
   next();
 });
-sessionStorage.setItem('season', utils.getUrl("season") || "")
+let season = utils.getUrl("season")
+sessionStorage.setItem('season', season || "")
 new Vue({
   router,
   store,

+ 4 - 0
src/view/layout/index.vue

@@ -59,6 +59,10 @@ export default {
       });
       if(season == 2 && this.topicOfConversation && this.topicOfConversation.length) {
         this.toRouter(this.topicOfConversation[0], this.topicOfConversation[0].id)
+      }else if (season == 1){
+        this.toRouter({
+          path: "/contrast"
+        })
       }
     });
   },