Skip to content

Commit 67656e5

Browse files
committed
chore: 移除多余代码
1 parent bd4bec9 commit 67656e5

8 files changed

Lines changed: 0 additions & 96 deletions

File tree

apps/core-ant-design-vue/src/store/modules/app/account.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => {
9494
await apiApp.passwordEdit(data)
9595
}
9696

97-
// 锁屏
98-
function lock() {
99-
localStorage.removeItem('token')
100-
}
101-
102-
// 解锁
103-
function unlock() {
104-
localStorage.setItem('token', token.value)
105-
}
106-
10797
return {
10898
token,
10999
account,
@@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => {
115105
requestLogout,
116106
getPermissions,
117107
editPassword,
118-
lock,
119-
unlock,
120108
}
121109
})

apps/core-antdv-next/src/store/modules/app/account.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => {
9494
await apiApp.passwordEdit(data)
9595
}
9696

97-
// 锁屏
98-
function lock() {
99-
localStorage.removeItem('token')
100-
}
101-
102-
// 解锁
103-
function unlock() {
104-
localStorage.setItem('token', token.value)
105-
}
106-
10797
return {
10898
token,
10999
account,
@@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => {
115105
requestLogout,
116106
getPermissions,
117107
editPassword,
118-
lock,
119-
unlock,
120108
}
121109
})

apps/core-arco-design-vue/src/store/modules/app/account.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => {
9494
await apiApp.passwordEdit(data)
9595
}
9696

97-
// 锁屏
98-
function lock() {
99-
localStorage.removeItem('token')
100-
}
101-
102-
// 解锁
103-
function unlock() {
104-
localStorage.setItem('token', token.value)
105-
}
106-
10797
return {
10898
token,
10999
account,
@@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => {
115105
requestLogout,
116106
getPermissions,
117107
editPassword,
118-
lock,
119-
unlock,
120108
}
121109
})

apps/core-naive-ui/src/store/modules/app/account.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => {
9494
await apiApp.passwordEdit(data)
9595
}
9696

97-
// 锁屏
98-
function lock() {
99-
localStorage.removeItem('token')
100-
}
101-
102-
// 解锁
103-
function unlock() {
104-
localStorage.setItem('token', token.value)
105-
}
106-
10797
return {
10898
token,
10999
account,
@@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => {
115105
requestLogout,
116106
getPermissions,
117107
editPassword,
118-
lock,
119-
unlock,
120108
}
121109
})

apps/core-tdesign/src/store/modules/app/account.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => {
9494
await apiApp.passwordEdit(data)
9595
}
9696

97-
// 锁屏
98-
function lock() {
99-
localStorage.removeItem('token')
100-
}
101-
102-
// 解锁
103-
function unlock() {
104-
localStorage.setItem('token', token.value)
105-
}
106-
10797
return {
10898
token,
10999
account,
@@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => {
115105
requestLogout,
116106
getPermissions,
117107
editPassword,
118-
lock,
119-
unlock,
120108
}
121109
})

apps/core-vexip-ui/src/store/modules/app/account.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => {
9494
await apiApp.passwordEdit(data)
9595
}
9696

97-
// 锁屏
98-
function lock() {
99-
localStorage.removeItem('token')
100-
}
101-
102-
// 解锁
103-
function unlock() {
104-
localStorage.setItem('token', token.value)
105-
}
106-
10797
return {
10898
token,
10999
account,
@@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => {
115105
requestLogout,
116106
getPermissions,
117107
editPassword,
118-
lock,
119-
unlock,
120108
}
121109
})

apps/core/src/store/modules/app/account.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => {
9494
await apiApp.passwordEdit(data)
9595
}
9696

97-
// 锁屏
98-
function lock() {
99-
localStorage.removeItem('token')
100-
}
101-
102-
// 解锁
103-
function unlock() {
104-
localStorage.setItem('token', token.value)
105-
}
106-
10797
return {
10898
token,
10999
account,
@@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => {
115105
requestLogout,
116106
getPermissions,
117107
editPassword,
118-
lock,
119-
unlock,
120108
}
121109
})

apps/example/src/store/modules/app/account.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ export const useAppAccountStore = defineStore('appAccount', () => {
9494
await apiApp.passwordEdit(data)
9595
}
9696

97-
// 锁屏
98-
function lock() {
99-
localStorage.removeItem('token')
100-
}
101-
102-
// 解锁
103-
function unlock() {
104-
localStorage.setItem('token', token.value)
105-
}
106-
10797
return {
10898
token,
10999
account,
@@ -115,7 +105,5 @@ export const useAppAccountStore = defineStore('appAccount', () => {
115105
requestLogout,
116106
getPermissions,
117107
editPassword,
118-
lock,
119-
unlock,
120108
}
121109
})

0 commit comments

Comments
 (0)