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

API 参考 / NavigationGuardWithThis

接口:NavigationGuardWithThis<T> ​

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

类型参数 ​

Name
T

可调用函数 ​

NavigationGuardWithThis ​

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

参数 ​

名称类型
thisT
toRouteLocationNormalized
fromRouteLocationNormalized
nextNavigationGuardNext

返回值 ​

NavigationGuardReturn | Promise<NavigationGuardReturn>

Released under the MIT License.