fix: 修复无 TagsView 重定向首页时导致 query 参数丢失的问题

This commit is contained in:
pany 2022-08-26 19:31:14 +08:00
parent 160858d6de
commit 68262e3e79

View File

@ -101,7 +101,7 @@ const toLastView = (visitedViews: ITagView[], view: ITagView) => {
// TagsView // TagsView
if (view.name === "Dashboard") { if (view.name === "Dashboard") {
// //
router.push({ path: "/redirect" + view.fullPath }) router.push({ path: "/redirect" + view.path, query: view.query })
} else { } else {
router.push("/") router.push("/")
} }