diff --git a/kicc-ui/src/store/modules/lock.ts b/kicc-ui/src/store/modules/lock.ts index ec2cbc12..ba0f8271 100644 --- a/kicc-ui/src/store/modules/lock.ts +++ b/kicc-ui/src/store/modules/lock.ts @@ -42,7 +42,7 @@ export const useLockStore = defineStore({ } const tryLogin = async () => { try { - const username = userStore.getUserInfo?.username; + const username = userStore.getUserInfo.userName; const res = await userStore.login({ username, password: password!,