|
|
|
@ -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; |
|
|
|
|