From e94020ff541a061599486c0003258f1dbf13aba8 Mon Sep 17 00:00:00 2001 From: huanghong Date: Wed, 30 Mar 2022 20:29:48 +0800 Subject: [PATCH] fix: fix refresh with query --- src/components/TagsView/src/TagsView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/TagsView/src/TagsView.vue b/src/components/TagsView/src/TagsView.vue index dd70218..c142d71 100644 --- a/src/components/TagsView/src/TagsView.vue +++ b/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 }) }