Merge pull request #24 from huanghong1125/fix-refresh

fix TagsView refresh
This commit is contained in:
Archer 2022-03-31 08:19:38 +08:00 committed by GitHub
commit 7394c5c599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

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