fix:添加用户账号校验

dev
wangxy 12 months ago
parent 213628a0fd
commit e7f148745d

@ -86,12 +86,14 @@ export default {
password: "", password: "",
confirmPassword: "", confirmPassword: "",
code: "", code: "",
uuid: "" uuid: "",
roleKey:""
}, },
registerRules: { registerRules: {
username: [ username: [
{ required: true, trigger: "blur", message: "请输入您的账号(保持和申报学校的名称一致)" }, { required: true, trigger: "blur", message: "请输入您的账号(保持和申报学校的名称一致)" },
{ min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' } { min: 2, max: 20, message: '用户账号长度必须介于 2 和 20 之间', trigger: 'blur' },
{ pattern: /^[\u4e00-\u9fa5]+$/, message: "只能输入中文", trigger: "blur" }
], ],
password: [ password: [
{ required: true, trigger: "blur", message: "请输入您的密码" }, { required: true, trigger: "blur", message: "请输入您的密码" },

Loading…
Cancel
Save