useState
{ reset: true }
export function clearNuxtState (keys?: string | string[] | ((key: string) => boolean), opts?: ClearNuxtStateOptions): void
keys
opts: 用于配置清除行为的选项对象。
opts
reset
true
init
undefined
experimental.defaults.useState.resetOnClear
Was this helpful?
clearNuxtData
删除 useAsyncData 和 useFetch 的缓存数据、错误状态和未决的 promise。
createError
创建一个带有额外元数据的错误对象。
On this page
社区