From 30236a04e2ccc4d3fbbc3a2938086c76bfeeeb32 Mon Sep 17 00:00:00 2001 From: "liu.shiyi" Date: Fri, 28 Jul 2023 17:30:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BC=98=E5=8C=96http=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86=E8=84=9A=E6=9C=AC=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataSetManagement/src/HttpEditForm.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue b/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue index 5c0c8262..84f02f61 100644 --- a/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue +++ b/data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue @@ -345,6 +345,10 @@ :autosize="{ minRows: 10, maxRows: 10}" clearable /> +
+ 请求体设置规则: 请求体已经内置参数body,如需添加请求体参数,可直接加入到body对象中。
例如:body.test='test' +
+
+
+ 请求脚本设置规则: 请求脚本已经内置参数req,可参考请求拦截的回调参数config直接使用(修改url中的参数例外), +
如修改请求头中对应参数      :      req.headers.name='tom' +
如修改url中对应参数      :      req.urlKey.age=17 +
+
+
+ 响应脚本设置规则: 接口返回数据已经内置到参数response中,可直接使用,但是必须要返回设置后的数据。
例如:let data =response.data; return data; +
+