diff --git a/src/store/modules/lock.ts b/src/store/modules/lock.ts index 508109f..851cd43 100644 --- a/src/store/modules/lock.ts +++ b/src/store/modules/lock.ts @@ -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;