Skip to content

Complete guide to

Mastering Pinia

written by its creator

该翻译已同步到了 的版本,其对应的 commit hash 是 1a3a28f

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.