list change
This commit is contained in:
parent
021b63bc2a
commit
70145bc733
|
|
@ -23,7 +23,7 @@ export const useStore = defineStore('main', {
|
||||||
{
|
{
|
||||||
// 自定义存储的 key,默认是 store.$id
|
// 自定义存储的 key,默认是 store.$id
|
||||||
key: 'main',
|
key: 'main',
|
||||||
storage: sessionStorage, //缓存模式 可选 localStorage sessionStorage
|
storage: localStorage, //缓存模式 可选 localStorage sessionStorage
|
||||||
// state 中的字段名,按组打包储存
|
// state 中的字段名,按组打包储存
|
||||||
paths: ['token'] //需要缓存的字段 与 state中相关联
|
paths: ['token'] //需要缓存的字段 与 state中相关联
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue