liyongli há 8 meses atrás
pai
commit
8be9246374
1 ficheiros alterados com 2 adições e 7 exclusões
  1. 2 7
      src/views/Activity/Activity.vue

+ 2 - 7
src/views/Activity/Activity.vue

@@ -49,17 +49,12 @@ export default {
     };
   },
   mounted() {
-    if (localStorage.getItem("chinaMap")) this.init();
-    else this.getMap();
+    this.init();
+    if (!localStorage.getItem("chinaMap")) this.getMap();
   },
   computed: {},
   methods: {
     init() {
-      if (localStorage.guijiToken) {
-        return guijiActivity().then(topic => {
-          this.getTab(topic);
-        });
-      }
       let from = new FormData();
       from.append("username", "lyl");
       from.append("sign", 'd9fc62ef304cec188e51bfd2df556a344a38d5a04cb7d4050c5d2ed12fa8631e');