Skip to content
该翻译已同步到了 的版本,其对应的 commit hash 是 d842b6f

API 参考 / NavigationGuardWithThis

接口:NavigationGuardWithThis<T> %{#interface-navigationguardwiththis-t}%

导航守卫。详情可查阅导航守卫

类型参数 %{#Type-parameters}%

Name
T

可调用函数 %{#Callable}%

NavigationGuardWithThis(this, to, from, next): NavigationGuardReturn | Promise<NavigationGuardReturn>

参数 %{#Callable-NavigationGuardWithThis-Parameters}%

名称类型
thisT
toRouteLocationNormalized
fromRouteLocationNormalized
nextNavigationGuardNext

返回值 %{#Callable-NavigationGuardWithThis-Returns}%

NavigationGuardReturn | Promise<NavigationGuardReturn>

Released under the MIT License.