diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 66b7d2d..11b0436 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -101,7 +101,7 @@ const toLastView = (visitedViews: ITagView[], view: ITagView) => { // 如果 TagsView 全部被关闭了,则默认重定向到主页 if (view.name === "Dashboard") { // 重新加载主页 - router.push({ path: "/redirect" + view.fullPath }) + router.push({ path: "/redirect" + view.path, query: view.query }) } else { router.push("/") }