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

API 文档 / pinia / PiniaCustomProperties

接口:PiniaCustomProperties<Id, S, G, A> ​

pinia.PiniaCustomProperties

当用户通过插件添加属性时,接口可被扩展。

类型参数 ​

名称类型
Idextends string = string
Sextends StateTree = StateTree
G_GettersTree<S>
A_ActionsTree

Accessors ​

route ​

• get route(): RouteLocationNormalized

返回值 ​

RouteLocationNormalized

• set route(value): void

参数 ​

NameType
valueRouteLocationNormalizedLoaded | Ref<RouteLocationNormalizedLoaded>

返回值 ​

void

Released under the MIT License.