Jelajahi Sumber

Merge tag 'Hotfix-zh-71' into develop

Finish Hotfix-zh-71
howie 3 tahun lalu
induk
melakukan
f710292971

+ 2 - 2
src/layout/components/AppMain.vue

@@ -1,9 +1,9 @@
 <template>
   <section class="app-main">
     <transition name="fade-transform" mode="out-in">
-      <keep-alive >
+
         <router-view />
-      </keep-alive>
+
     </transition>
   </section>
 </template>

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

@@ -1,13 +1,12 @@
 <template>
   <div id="tags-view-container" class="tags-view-container">
     <scroll-pane ref="scrollPane" class="tags-view-wrapper" @scroll="handleScroll">
-<!--      path: tag.path-->
       <router-link
         v-for="tag in visitedViews"
         ref="tag"
         :key="tag.path"
         :class="isActive(tag)?'active':''"
-        :to="{ name: tag.name, query: tag.query, fullPath: tag.fullPath }"
+        :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
         tag="span"
         class="tags-view-item"
         @click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
@@ -69,7 +68,7 @@ export default {
   },
   methods: {
     isActive(route) {
-      return route.name === this.$route.name
+      return route.path === this.$route.path
     },
     isAffix(tag) {
       return tag.meta && tag.meta.affix