From 0fad7586bca5522ec65d4150dc414d8bab3fd188 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 13 Jan 2022 16:50:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20ge?= =?UTF-8?q?t=E8=AF=B7=E6=B1=82=E8=87=AA=E5=AE=9A=E4=B9=89query=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E7=AC=AC=E4=B8=80=E4=B8=AA=E5=8F=82=E6=95=B0=E4=BC=9A?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1009576 --user=王孝刚 【接口测试】github#9301,get请求==自定义query区域第一个参数会默认必填 https://www.tapd.cn/55049933/s/1091492 --- .../components/api/definition/components/ApiVariable.vue | 2 +- .../definition/components/request/http/ApiHttpRequestForm.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/ApiVariable.vue b/frontend/src/business/components/api/definition/components/ApiVariable.vue index 0d050057e7..db043c7c4b 100644 --- a/frontend/src/business/components/api/definition/components/ApiVariable.vue +++ b/frontend/src/business/components/api/definition/components/ApiVariable.vue @@ -296,7 +296,7 @@ export default { this.parameters.push(new KeyValue({ type: 'text', enable: true, - required: true, + required: false, uuid: this.uuid(), contentType: 'text/plain' })); diff --git a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue index ccf665b9e0..c6c2595558 100644 --- a/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue +++ b/frontend/src/business/components/api/definition/components/request/http/ApiHttpRequestForm.vue @@ -307,7 +307,7 @@ export default { let required = false; keyValues.unshift(new KeyValue({ name: line[0], - required: !required, + required: required, value: line[1], description: line[2], type: "text",