diff --git a/apps/core-ant-design-vue/src/store/modules/app/account.ts b/apps/core-ant-design-vue/src/store/modules/app/account.ts index 25b8da9d..8fabf54b 100755 --- a/apps/core-ant-design-vue/src/store/modules/app/account.ts +++ b/apps/core-ant-design-vue/src/store/modules/app/account.ts @@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => { await apiApp.passwordEdit(data) } - // 锁屏 - function lock() { - localStorage.removeItem('token') - } - - // 解锁 - function unlock() { - localStorage.setItem('token', token.value) - } - return { token, account, @@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => { requestLogout, getPermissions, editPassword, - lock, - unlock, } }) diff --git a/apps/core-antdv-next/src/store/modules/app/account.ts b/apps/core-antdv-next/src/store/modules/app/account.ts index 25b8da9d..8fabf54b 100755 --- a/apps/core-antdv-next/src/store/modules/app/account.ts +++ b/apps/core-antdv-next/src/store/modules/app/account.ts @@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => { await apiApp.passwordEdit(data) } - // 锁屏 - function lock() { - localStorage.removeItem('token') - } - - // 解锁 - function unlock() { - localStorage.setItem('token', token.value) - } - return { token, account, @@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => { requestLogout, getPermissions, editPassword, - lock, - unlock, } }) diff --git a/apps/core-arco-design-vue/src/store/modules/app/account.ts b/apps/core-arco-design-vue/src/store/modules/app/account.ts index 25b8da9d..8fabf54b 100755 --- a/apps/core-arco-design-vue/src/store/modules/app/account.ts +++ b/apps/core-arco-design-vue/src/store/modules/app/account.ts @@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => { await apiApp.passwordEdit(data) } - // 锁屏 - function lock() { - localStorage.removeItem('token') - } - - // 解锁 - function unlock() { - localStorage.setItem('token', token.value) - } - return { token, account, @@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => { requestLogout, getPermissions, editPassword, - lock, - unlock, } }) diff --git a/apps/core-naive-ui/src/store/modules/app/account.ts b/apps/core-naive-ui/src/store/modules/app/account.ts index 25b8da9d..8fabf54b 100755 --- a/apps/core-naive-ui/src/store/modules/app/account.ts +++ b/apps/core-naive-ui/src/store/modules/app/account.ts @@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => { await apiApp.passwordEdit(data) } - // 锁屏 - function lock() { - localStorage.removeItem('token') - } - - // 解锁 - function unlock() { - localStorage.setItem('token', token.value) - } - return { token, account, @@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => { requestLogout, getPermissions, editPassword, - lock, - unlock, } }) diff --git a/apps/core-tdesign/src/store/modules/app/account.ts b/apps/core-tdesign/src/store/modules/app/account.ts index 25b8da9d..8fabf54b 100755 --- a/apps/core-tdesign/src/store/modules/app/account.ts +++ b/apps/core-tdesign/src/store/modules/app/account.ts @@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => { await apiApp.passwordEdit(data) } - // 锁屏 - function lock() { - localStorage.removeItem('token') - } - - // 解锁 - function unlock() { - localStorage.setItem('token', token.value) - } - return { token, account, @@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => { requestLogout, getPermissions, editPassword, - lock, - unlock, } }) diff --git a/apps/core-vexip-ui/src/store/modules/app/account.ts b/apps/core-vexip-ui/src/store/modules/app/account.ts index 25b8da9d..8fabf54b 100755 --- a/apps/core-vexip-ui/src/store/modules/app/account.ts +++ b/apps/core-vexip-ui/src/store/modules/app/account.ts @@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => { await apiApp.passwordEdit(data) } - // 锁屏 - function lock() { - localStorage.removeItem('token') - } - - // 解锁 - function unlock() { - localStorage.setItem('token', token.value) - } - return { token, account, @@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => { requestLogout, getPermissions, editPassword, - lock, - unlock, } }) diff --git a/apps/core/src/store/modules/app/account.ts b/apps/core/src/store/modules/app/account.ts index 25b8da9d..8fabf54b 100755 --- a/apps/core/src/store/modules/app/account.ts +++ b/apps/core/src/store/modules/app/account.ts @@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => { await apiApp.passwordEdit(data) } - // 锁屏 - function lock() { - localStorage.removeItem('token') - } - - // 解锁 - function unlock() { - localStorage.setItem('token', token.value) - } - return { token, account, @@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => { requestLogout, getPermissions, editPassword, - lock, - unlock, } }) diff --git a/apps/example/src/store/modules/app/account.ts b/apps/example/src/store/modules/app/account.ts index 25b8da9d..8fabf54b 100755 --- a/apps/example/src/store/modules/app/account.ts +++ b/apps/example/src/store/modules/app/account.ts @@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => { await apiApp.passwordEdit(data) } - // 锁屏 - function lock() { - localStorage.removeItem('token') - } - - // 解锁 - function unlock() { - localStorage.setItem('token', token.value) - } - return { token, account, @@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => { requestLogout, getPermissions, editPassword, - lock, - unlock, } })