Browse Source

chore: 锁屏优化

master
wangxiang 2 years ago
parent
commit
cd0cd874e5
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 7
      src/store/modules/lock.ts

7
src/store/modules/lock.ts

@ -48,13 +48,14 @@ export const useLockStore = defineStore({ @@ -48,13 +48,14 @@ export const useLockStore = defineStore({
const tryLogin = async () => {
try {
const username = userStore.getUserInfo.userName;
userStore.setAccessToken('');
userStore.setRefreshToken('');
const res = await userStore.login({
username,
password: password,
goHome: false,
clientId: 'kicc_lock'
clientId: 'kicc_lock',
options: {
withToken: false
}
});
if (res) this.resetLockInfo();
return res;

Loading…
Cancel
Save