|
|
|
@ -10,7 +10,6 @@ interface LockState {
|
|
|
|
lockInfo: lockInfo
|
|
|
|
lockInfo: lockInfo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// TODO 芋艿:【锁屏】这里有报错,后续解决下
|
|
|
|
|
|
|
|
export const useLockStore = defineStore('lock', {
|
|
|
|
export const useLockStore = defineStore('lock', {
|
|
|
|
state: (): LockState => {
|
|
|
|
state: (): LockState => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
@ -41,10 +40,7 @@ export const useLockStore = defineStore('lock', {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
persist: {
|
|
|
|
persist: true
|
|
|
|
enabled: true,
|
|
|
|
|
|
|
|
strategies: [{ key: 'lock', storage: localStorage }]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
export const useLockStoreWithOut = () => {
|
|
|
|
export const useLockStoreWithOut = () => {
|
|
|
|
|