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({
const tryLogin = async () => { const tryLogin = async () => {
try { try {
const username = userStore.getUserInfo.userName; const username = userStore.getUserInfo.userName;
userStore.setAccessToken('');
userStore.setRefreshToken('');
const res = await userStore.login({ const res = await userStore.login({
username, username,
password: password, password: password,
goHome: false, goHome: false,
clientId: 'kicc_lock' clientId: 'kicc_lock',
options: {
withToken: false
}
}); });
if (res) this.resetLockInfo(); if (res) this.resetLockInfo();
return res; return res;

Loading…
Cancel
Save