|
|
@@ -142,14 +142,14 @@ export default {
|
|
|
this.errors = { username: "", password: "", captcha: "" };
|
|
|
let ok = true;
|
|
|
if (!this.username) {
|
|
|
- this.$set(this.errors, "username", "请输入用户名");
|
|
|
+ this.$set(this.errors, "username", "用户名不能为空");
|
|
|
ok = false;
|
|
|
} else if (this.username.length < 2) {
|
|
|
this.$set(this.errors, "username", "用户名至少 2 个字符");
|
|
|
ok = false;
|
|
|
}
|
|
|
if (!this.password) {
|
|
|
- this.$set(this.errors, "password", "请输入密码");
|
|
|
+ this.$set(this.errors, "password", "密码不能为空");
|
|
|
ok = false;
|
|
|
} else if (this.password.length < 6) {
|
|
|
this.$set(this.errors, "password", "密码至少 6 个字符");
|