Browse Source

Merge pull request #24 from huanghong1125/fix-refresh

fix TagsView refresh
Archer 3 years ago
parent
commit
7394c5c599
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/components/TagsView/src/TagsView.vue

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

@@ -77,10 +77,11 @@ const closeOthersTags = () => {
 const refreshSelectedTag = async (view?: RouteLocationNormalizedLoaded) => {
   if (!view) return
   tagsViewStore.delCachedView()
-  const { fullPath } = view
+  const { path, query } = view
   await nextTick()
   replace({
-    path: '/redirect' + fullPath
+    path: '/redirect' + path,
+    query: query
   })
 }