From d6c70bad0a88629dd39731934be066d4165fc1e6 Mon Sep 17 00:00:00 2001 From: chansee97 Date: Tue, 16 Sep 2025 00:43:35 +0800 Subject: [PATCH] fix: login filed error --- src/store/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/auth.ts b/src/store/auth.ts index 74ec235..a474da7 100644 --- a/src/store/auth.ts +++ b/src/store/auth.ts @@ -51,8 +51,8 @@ export const useAuthStore = defineStore('auth-store', { }, /* 用户登录 */ - async login(userName: string, password: string, captchaId?: string, captcha?: string) { - const loginData: any = { userName, password } + async login(username: string, password: string, captchaId?: string, captcha?: string) { + const loginData: any = { username, password } // 如果提供了验证码相关参数,则添加到登录数据中 if (captchaId && captcha) {