From 67656e5943afa927dc5848193f09aa575cfc5c33 Mon Sep 17 00:00:00 2001 From: Hooray <304327508@qq.com> Date: Mon, 18 May 2026 14:12:08 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/store/modules/app/account.ts | 12 ------------ .../core-antdv-next/src/store/modules/app/account.ts | 12 ------------ .../src/store/modules/app/account.ts | 12 ------------ apps/core-naive-ui/src/store/modules/app/account.ts | 12 ------------ apps/core-tdesign/src/store/modules/app/account.ts | 12 ------------ apps/core-vexip-ui/src/store/modules/app/account.ts | 12 ------------ apps/core/src/store/modules/app/account.ts | 12 ------------ apps/example/src/store/modules/app/account.ts | 12 ------------ 8 files changed, 96 deletions(-) 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, } })