From 2b6e425ef27a819d994a4e5fa634b0d4e903eb12 Mon Sep 17 00:00:00 2001 From: "DESKTOP-DDTUS3E\\yaxin" Date: Tue, 5 Nov 2024 15:25:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=9C=89=E7=BB=93=E6=9E=84=E5=8C=96?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E8=AF=8D=E6=89=8D=E9=9C=80=E8=A6=81=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=B1=9E=E6=80=A7=E5=AE=8C=E6=95=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../promptManagement/PromptConfig/add/index.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/promptManagement/PromptConfig/add/index.vue b/src/views/promptManagement/PromptConfig/add/index.vue index b01a3e7..56dc464 100644 --- a/src/views/promptManagement/PromptConfig/add/index.vue +++ b/src/views/promptManagement/PromptConfig/add/index.vue @@ -308,7 +308,7 @@ export default { }, reset() { this.dataInfo = { - + rules: '(问[::](.*?))\s*答[::](.*?)(?=(问[::]|$))', caseType: '', type: '1', @@ -323,10 +323,12 @@ export default { submit() { this.$refs.form.validate(valid => { if (valid) { - for (const item of this.dataInfo.extractAttributes) { - if (item.attrName === '' || item.attrValueType === '') { - this.$baseMessage.error('请填写完整属性') - return + if (this.dataInfo.type === '1') { + for (const item of this.dataInfo.extractAttributes) { + if (item.attrName === '' || item.attrValueType === '') { + this.$baseMessage.error('请填写完整属性') + return + } } } const params = {