From 1bf98bde68c73b75ac18dd217ba934bd09443047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 19 Feb 2024 16:05:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=A0=87=E7=AD=BE=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8C=E6=95=B0=E6=8D=AE=E5=80=BC=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E5=8C=85=E5=90=AB=E2=80=9C/=E2=80=9D=EF=BC=8C?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E4=B8=8D=E9=9C=80=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/modules/DictItemModal.vue | 2 +- src/views/system/tags/modules/TagContentDictItemModal.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/system/modules/DictItemModal.vue b/src/views/system/modules/DictItemModal.vue index 0475fc1f..86ab6956 100644 --- a/src/views/system/modules/DictItemModal.vue +++ b/src/views/system/modules/DictItemModal.vue @@ -191,7 +191,7 @@ export default { param.id = this.model.id } if (value) { - const reg = new RegExp('[`_~!@#$^&*()=|{}\'.<>《》/?!¥()—【】‘;:”“。,、?]') + const reg = new RegExp('[`_~!@#$^&*()=|{}\'.<>《》?!¥()—【】‘;:”“。,、?]') if (reg.test(value)) { callback(new Error(this.$t('dict.valueCannotContainSpecChar'))) } else { diff --git a/src/views/system/tags/modules/TagContentDictItemModal.vue b/src/views/system/tags/modules/TagContentDictItemModal.vue index 53e427d6..2c5a1f8c 100644 --- a/src/views/system/tags/modules/TagContentDictItemModal.vue +++ b/src/views/system/tags/modules/TagContentDictItemModal.vue @@ -111,7 +111,7 @@ export default { itemText: [{ required: true, message: this.$t('pleaseEnter') + this.$t('system.tag.name'), trigger: 'blur' }], // 英文名称 enName: [{ - required: true, + required: false, message: this.$t('pleaseEnter') + this.$t('system.tag.attributeNameEnglish'), trigger: 'blur' }], @@ -213,7 +213,7 @@ export default { param.id = this.model.id } if (value) { - const reg = new RegExp('[`_~!@#$^&*()=|{}\'.<>《》/?!¥()—【】‘;:”“。,、?]') + const reg = new RegExp('[`_~!@#$^&*()=|{}\'.<>《》?!¥()—【】‘;:”“。,、?]') if (reg.test(value)) { callback(new Error(this.$t('dict.valueCannotContainSpecChar'))) } else {