This commit is contained in:
@@ -43,10 +43,9 @@ export const navigateNotificationTarget = (
|
|||||||
target?: NotificationTarget | null
|
target?: NotificationTarget | null
|
||||||
) => {
|
) => {
|
||||||
if (!target) return false
|
if (!target) return false
|
||||||
if (!target.available) {
|
// 目标本身不可用时由调用方提示通知正文,不应将用户带到 403 页面。
|
||||||
void router.push(RoutesAlias.Exception403)
|
// 目标可用但进入页面后没有页面权限时,交由路由守卫处理 403。
|
||||||
return true
|
if (!target.available) return false
|
||||||
}
|
|
||||||
|
|
||||||
const route = resolveTargetRoute(refType, target)
|
const route = resolveTargetRoute(refType, target)
|
||||||
if (!route) return false
|
if (!route) return false
|
||||||
|
|||||||
Reference in New Issue
Block a user