ming 3 gadi atpakaļ
vecāks
revīzija
365f266a1f
6 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. BIN
      dist.zip
  2. BIN
      dist5.zip
  3. 2 1
      src/main.js
  4. 2 1
      src/views/home/index.vue
  5. 2 1
      src/views/index.vue
  6. 1 1
      src/views/login.vue

BIN
dist.zip


BIN
dist5.zip


+ 2 - 1
src/main.js

@@ -42,7 +42,8 @@ router.beforeEach((to, from, next) => {
 
     //如果目标路由为登陆时,恢复用户原始状态
     if (to.path === '/') {
-        // next({ path: '/home' })
+        next({ path: '/home' })
+
         // removeToken()
 
         // localStorage.removeItem("accessToken");

+ 2 - 1
src/views/home/index.vue

@@ -399,7 +399,8 @@ export default {
           this.map.clearInfoWindow();
         });
         marker.on("click", async () => {
-          localStorage.clear();
+          // localStorage.clear();
+          localStorage.removeItem("Overview")
           this.$router.push({ path: "/Overview" });
           this.$store.commit("increment", val.id);
           localStorage.setItem("Overview", [val.id, val.siteName]);

+ 2 - 1
src/views/index.vue

@@ -143,7 +143,8 @@ export default {
           this.name = this.options[i].label;
         }
       }
-      localStorage.clear();
+      // localStorage.clear();
+      localStorage.removeItem("Overview")
       localStorage.setItem("Overview", [val, this.name]);
     },
     //下拉列表api请求

+ 1 - 1
src/views/login.vue

@@ -84,7 +84,7 @@ export default {
   },
   mounted() {
     this.getCookie();
-    this.loginFree();
+    // this.loginFree();
    
    
   },