feat: enforce username length

This commit is contained in:
Tim
2025-07-08 13:03:40 +08:00
parent 4bbc8c6e4d
commit 3f41fa7b7f
4 changed files with 49 additions and 1 deletions

View File

@@ -120,6 +120,8 @@ export default {
}
if (!this.username) {
this.usernameError = '用户名不能为空'
} else if (this.username.length < 6) {
this.usernameError = '用户名至少6位'
}
if (this.emailError || this.passwordError || this.usernameError) {
return