Kaynağa Gözat

首页刷新修改

zxr 3 yıl önce
ebeveyn
işleme
58560c2679
2 değiştirilmiş dosya ile 12 ekleme ve 5 silme
  1. 4 2
      src/layout/components/TagsView/index.vue
  2. 8 3
      src/views/pt.vue

+ 4 - 2
src/layout/components/TagsView/index.vue

@@ -153,15 +153,17 @@ export default {
     },
     refreshSelectedTag(view) {
       this.$store.dispatch('tagsView/delCachedView', view).then(() => {
-        const { fullPath } = view
+        // const { fullPath } = view
         this.$nextTick(() => {
           this.$router.replace({
-            path: '/redirect' + fullPath
+            // path: '/redirect' + fullPath
+            path: '/index'
           })
         })
       })
     },
     closeSelectedTag(view) {
+      this.$store.state.tagsView.visitedViews=[];
       this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
         if (this.isActive(view)) {
           this.toLastView(visitedViews, view)

+ 8 - 3
src/views/pt.vue

@@ -116,8 +116,8 @@
               </div>
             </li>
             <li>
-              <div class="demo active"  v-on:click="gongju" data-url="/diary?ref=addtabs">
-                <img src="../images/星星@2x.png" alt="" />
+              <div class="demo active" v-on:click="gongju" data-url="/diary?ref=addtabs">
+                <img src="../images/xt.png" alt />
                 <br />
                 <a href="#" class="a">系统工具</a>
               </div>
@@ -319,7 +319,12 @@ export default {
       this.$router
         .push({ path: "/index", query: { name: "/system" } })
         .catch(() => {});
-    }
+    },
+    gongju() {
+      this.$router
+        .push({ path: "/index", query: { name: "/tool" } })
+        .catch(() => {});
+    },
   }
 };
 </script>