Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 11:29:20 +08:00

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
if (view.name === "Dashboard") {
//
router.push({ path: "/redirect" + view.fullPath })
router.push({ path: "/redirect" + view.path, query: view.query })
} else {
router.push("/")
}