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:
parent
160858d6de
commit
68262e3e79
@ -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("/")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user