From de9a869392af14abbcbbe98a480e84fdd359fa9e Mon Sep 17 00:00:00 2001 From: "liu.shiyi" Date: Sat, 7 Oct 2023 10:02:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:http=E6=95=B0=E6=8D=AE=E9=9B=86:=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E8=A7=A3=E6=9E=90=E6=97=B6=E5=8F=AA=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataSetManagement/src/HttpEditForm.vue | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue b/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue index f63ade2f..2f39a86d 100644 --- a/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue +++ b/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue @@ -764,7 +764,7 @@ export default { const reg = /(https?|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/ if (!reg.test(value)) { // eslint-disable-next-line no-template-curly-in-string - callback(new Error('请输入请求地址')) + callback(new Error('请输入正确的请求地址')) } else { callback() } @@ -1123,17 +1123,18 @@ export default { this.getData() } } else { - this.$refs.form.validate((valid) => { - if (valid) { - this.getPramsList() - // 每次执行时只要有动态参数就会打开参数配置的弹窗进行设置 - if (this.dataForm.config.paramsList && this.dataForm.config.paramsList.length && !isInit) { - this.openParamsSetDialog(true) - } else { - this.getData() - } + // 点击解析时校验是否填写请求地址 + if (this.dataForm.config.url) { + this.getPramsList() + // 每次执行时只要有动态参数就会打开参数配置的弹窗进行设置 + if (this.dataForm.config.paramsList && this.dataForm.config.paramsList.length && !isInit) { + this.openParamsSetDialog(true) + } else { + this.getData() } - }) + } else { + this.$message.error('请输入请求地址') + } } }, // 调接口