修改用户邮箱正则条件
This commit is contained in:
@@ -244,7 +244,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.dataForm.email) {
|
if (this.dataForm.email) {
|
||||||
if (/^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$/.test(this.dataForm.email) == false) {
|
if (/^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$/.test(this.dataForm.email) == false && /^\w+\.[a-zA-Z0-9_-]+@\w+(\.[a-zA-Z]{2,3}){1,2}$/.test(this.dataForm.email) == false) {
|
||||||
this.$message.error("邮箱格式错误!")
|
this.$message.error("邮箱格式错误!")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user