Эх сурвалжийг харах

Merge pull request #24 from huanghong1125/fix-refresh

fix TagsView refresh
Archer 3 жил өмнө
parent
commit
7394c5c599

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

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