diff --git a/package.json b/package.json index f930bad..f8ce1f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ruoyi", - "version": "1.0.202411290932", + "version": "1.0.202412061713", "description": "金鸡湖现代服务业品牌管理系统", "author": "若依", "license": "MIT", diff --git a/src/views/enterpriselibrary/enterInfo/components/tabTwo/index.vue b/src/views/enterpriselibrary/enterInfo/components/tabTwo/index.vue index d8b1955..77c8e00 100644 --- a/src/views/enterpriselibrary/enterInfo/components/tabTwo/index.vue +++ b/src/views/enterpriselibrary/enterInfo/components/tabTwo/index.vue @@ -105,7 +105,8 @@ export default { //验证邮箱的规则 var checkEmail = (rule,value,cb) => { //验证邮箱的正则表达式 - const regEmail = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/; + // const regEmail = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/; + const regEmail = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,})$/ if(regEmail.test(value)){ //合法的邮箱 return cb(); @@ -156,6 +157,7 @@ export default { ], contactEmail:[ { required: true, message: '请填写常用联系人邮箱', trigger: 'blur' }, + // { type:"email", message: '请输入正确的邮箱地址', trigger: 'blur'} {validator: checkEmail, trigger: 'blur'} ], },