Skip to content

UTS 类型:NavigationHookAfter ​

全局后置守卫。详情可查阅全局后置钩子。

可调用函数 ​

  • NavigationHookAfter(to, from, failure): any

参数 ​

名称类型
toRouteLocationNormalizedLoaded
fromRouteLocationNormalizedLoaded
failureNavigationFailure | null

返回值 ​

any

UTS ​

ts
/**
 * `afterEach` 守卫回调定义
 */
export type NavigationHookAfter = (to: RouteLocationNormalizedLoaded, from: RouteLocationNormalizedLoaded, failure: NavigationFailure | null) => any

Released under the MIT License.