Commit d6e075f5 authored by 王永阿飞's avatar 王永阿飞

修改了bug

parent 92cee925
...@@ -74,7 +74,8 @@ import { ...@@ -74,7 +74,8 @@ import {
errorMessage: '请输入姓名', errorMessage: '请输入姓名',
}, { }, {
validateFunction: function(rule, value, data, callback) { validateFunction: function(rule, value, data, callback) {
let nameReg = /^[A-z]{2,16}$|^[\u4E00-\u9FA5]{2,16}$/ // let nameReg = /^[A-z]{2,16}$|^[\u4E00-\u9FA5]{2,16}$/
let nameReg = /^[A-z | \u4E00-\u9FA5]{2,16}$/
if (!nameReg.test(value)) { if (!nameReg.test(value)) {
callback('姓名只能输入汉字或字母且长度为2-16') callback('姓名只能输入汉字或字母且长度为2-16')
} }
......
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