From 4c90355d20aad07db756482c6dcfa9a7ac06db13 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Fri, 6 Dec 2024 17:23:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BA=93-=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E8=AF=A6=E6=83=85-=E6=96=B0=E5=A2=9E=E5=B8=B8=E7=94=A8?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E7=9A=84=E9=82=AE=E7=AE=B1=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- .../enterpriselibrary/enterInfo/components/tabTwo/index.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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'} ], },