This commit is contained in:
2024-05-27 15:03:54 +08:00

View File

@@ -244,7 +244,7 @@
}
if (this.dataForm.email) {
if (/^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$/.test(this.dataForm.email) == false) {
if (/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(this.dataForm.email) == false){
this.$message.error("邮箱格式错误!")
return
}