画安 пре 4 недеља
родитељ
комит
fa8028b211
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/components/ui/LoginForm.vue

+ 2 - 2
src/components/ui/LoginForm.vue

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