feat(admin): 增加工作台大屏和转码通知
This commit is contained in:
1 parent
2b2c6bd708
commit
a266d44483
10 files changed
+860
-172
No files matched your search
+6
-1
@@ -96,7 +96,12 @@ router.beforeEach(async (to, from, next) => {
|
||||
|
||||
const redirectPath = from.query.redirect || to.path
|
||||
const redirect = decodeURIComponent(redirectPath as string)
|
||||
const nextData = to.path === redirect ? { ...to, replace: true } : { path: redirect }
|
||||
// 只按路径重进。刷新时动态路由还没注册,先被兜底路由接住;
|
||||
// 若把当时匹配到的 name 带回去,会一直停在 404。
|
||||
const nextData =
|
||||
to.path === redirect
|
||||
? { path: to.path, query: to.query, hash: to.hash, replace: true }
|
||||
: { path: redirect, replace: true }
|
||||
permissionStore.setIsAddRouters(true)
|
||||
next(nextData)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user