fix: fix refresh with query

This commit is contained in:
huanghong 2022-03-30 20:29:48 +08:00
parent ecf375c1b2
commit e94020ff54
1 changed files with 3 additions and 2 deletions

View File

@ -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
})
}