diff --git a/src/components/Login.vue b/src/components/Login.vue
index 1025729..2c9dae1 100644
--- a/src/components/Login.vue
+++ b/src/components/Login.vue
@@ -4,11 +4,11 @@
-
-
+
+
-
+
@@ -28,6 +28,16 @@ export default {
loginForm: {
username: '',
password: ''
+ },
+ loginFormRules: {
+ username: [
+ { required: true, message: '请输入登录名称', trigger: 'blur' },
+ { min: 3, max: 10, message: '长度在 3 到 10 个字符', trigger: 'blur' }
+ ],
+ password: [
+ { required: true, message: '请输入登录密码', trigger: 'blur' },
+ { min: 6, max: 15, message: '长度在 6 到 15 个字符', trigger: 'blur' }
+ ]
}
}
}