list change

This commit is contained in:
wlikett 2023-12-04 10:20:00 +08:00
parent 021b63bc2a
commit 70145bc733
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export const useStore = defineStore('main', {
{
// 自定义存储的 key默认是 store.$id
key: 'main',
storage: sessionStorage, //缓存模式 可选 localStorage sessionStorage
storage: localStorage, //缓存模式 可选 localStorage sessionStorage
// state 中的字段名,按组打包储存
paths: ['token'] //需要缓存的字段 与 state中相关联
}