fix: 通知
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 9m23s

This commit is contained in:
luo
2026-07-28 18:52:15 +08:00
parent 831f03c3a7
commit 827de02f2b

View File

@@ -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