Commit 3b9defc0 authored by dragondean@qq.com's avatar dragondean@qq.com

唛头允许中间空格

parent 9ceaf94d
......@@ -901,7 +901,8 @@ export default {
{
validator: (rule, value, callback) => {
// 必须是字母和数字
let reg = /^[a-zA-Z0-9]*$/;
let reg = /^[a-zA-Z0-9 ]*$/;
if (!reg.test(value)) {
return callback(new Error(this.$t('唛头只能是字母和数字')));
}
......
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