This commit is contained in:
dap
2024-09-14 07:59:52 +08:00
43 changed files with 665 additions and 248 deletions

View File

@@ -65,7 +65,7 @@ export const useAccessStore = defineStore('core-access', {
},
persist: {
// 持久化
paths: ['accessToken', 'refreshToken', 'accessCodes'],
pick: ['accessToken', 'refreshToken', 'accessCodes'],
},
state: (): AccessState => ({
accessCodes: [],

View File

@@ -24,7 +24,7 @@ export const useLockStore = defineStore('core-lock', {
},
},
persist: {
paths: ['isLockScreen', 'lockScreenPassword'],
pick: ['isLockScreen', 'lockScreenPassword'],
},
state: (): AppState => ({
isLockScreen: false,

View File

@@ -465,7 +465,7 @@ export const useTabbarStore = defineStore('core-tabbar', {
persist: [
// tabs不需要保存在localStorage
{
paths: ['tabs'],
pick: ['tabs'],
storage: sessionStorage,
},
],