mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
登录成功
This commit is contained in:
parent
45479375d0
commit
a2abacc634
1 changed files with 3 additions and 3 deletions
|
|
@ -111,15 +111,15 @@ export default {
|
|||
},
|
||||
|
||||
async login() {
|
||||
if (isNull(this.form.username)) {
|
||||
if (!this.form.username.trim()) { // 替换isNull校验
|
||||
showDanger('用户名不能为空')
|
||||
return
|
||||
}
|
||||
if (isNull(this.form.password)) {
|
||||
if (!this.form.password.trim()) { // 替换isNull校验
|
||||
showDanger('密码不能为空')
|
||||
return
|
||||
}
|
||||
if (isNull(this.form.captcha)) {
|
||||
if (!this.form.captcha.trim()) { // 替换isNull校验
|
||||
showDanger('验证码不能为空')
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue