mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-09-17 19:29:58 +08:00
fix: login filed error
This commit is contained in:
parent
d6dcf017c4
commit
d6c70bad0a
@ -51,8 +51,8 @@ export const useAuthStore = defineStore('auth-store', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/* 用户登录 */
|
/* 用户登录 */
|
||||||
async login(userName: string, password: string, captchaId?: string, captcha?: string) {
|
async login(username: string, password: string, captchaId?: string, captcha?: string) {
|
||||||
const loginData: any = { userName, password }
|
const loginData: any = { username, password }
|
||||||
|
|
||||||
// 如果提供了验证码相关参数,则添加到登录数据中
|
// 如果提供了验证码相关参数,则添加到登录数据中
|
||||||
if (captchaId && captcha) {
|
if (captchaId && captcha) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user