Commit cd8aafa8 by 吕明尚

设备密码限制为8位数

parent 0f665298
......@@ -282,7 +282,9 @@ export default {
// 表单校验
rules: {
devPsw: [
{required: true, message: "设备密码不能为空", trigger: "blur"}
{required: true, message: "设备密码不能为空", trigger: "blur"},
//密码为8为数字
{pattern: /^[0-9]{8}$/, message: "密码为8位数字", trigger: "blur"}
],
devVer: [
{ required: true, message: "设备版本号不能为空", trigger: "blur" }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment