From 402cf533e6b79c88afbeb39812221e73ab2b3761 Mon Sep 17 00:00:00 2001 From: "liu.shiyi" Date: Mon, 7 Aug 2023 13:59:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:http=E6=95=B0=E6=8D=AE=E9=9B=86=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../packages/DataSetManagement/src/HttpEditForm.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue b/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue index 5abf4892..02cf62f0 100644 --- a/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue +++ b/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue @@ -157,7 +157,7 @@ v-model="dataForm.config.url" autocomplete="off" class="bs-el-input" - placeholder="请输入静态请求地址或动态请求地址,动态请求地址必须以${baseUrl}开头" + placeholder="请输入请求地址" clearable /> @@ -414,14 +414,14 @@ v-if="dataForm.config.requestType === 'frontend'" class="bs-codemirror-bottom-text" > - 响应脚本设置规则: 接口返回数据已经内置到参数resp中,可直接使用,但是必须要返回设置后的数据。
例如:return resp.data + 响应脚本设置规则: 接口返回数据已经内置到参数resp中,可直接使用,但是必须要返回设置后的数据。
例如:return resp.data
- 响应脚本设置规则: 接口返回数据已经内置到参数responseString(已转为字符串)中,,如果需要处理成JSON格式推荐使用JsonSlurper类。 + 响应脚本设置规则: 接口返回数据已经内置到参数responseString(已转为字符串)中,如果需要处理成JSON格式推荐使用JsonSlurper类。
例如:
import groovy.json.JsonSlurper
@@ -726,7 +726,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('请输入正确的静态请求地址或动态请求地址,动态请求地址必须以${baseUrl}/开头')) + callback(new Error('请输入请求地址')) } else { callback() }