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