From 1c6d4a64aa0d9451fa7d4498f252944d8fcd6d6e Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 22 Mar 2024 14:22:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=82=E6=95=B0=E9=A1=B5=E9=9D=A2=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【【接口测试】接口定义-API-查看接口-用例-创建用例请求体选form-data格式,修改表头设置后该设置功能消失了】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001037545 --- .../views/api-test/components/requestComposition/index.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/views/api-test/components/requestComposition/index.vue b/frontend/src/views/api-test/components/requestComposition/index.vue index 4f0cd868e7..7732c627e6 100644 --- a/frontend/src/views/api-test/components/requestComposition/index.vue +++ b/frontend/src/views/api-test/components/requestComposition/index.vue @@ -698,11 +698,7 @@ if (isHttpProtocol.value) { if (props.isCase) { // 定义没有参数BODY/QUERY/REST的,用例对应tab不显示 - return httpContentTabList.filter( - (e) => - !(!restNumApi.value && e.value === RequestComposition.REST) && - !(!queryNumApi.value && e.value === RequestComposition.QUERY) - ); + return httpContentTabList; } if (props.isDefinition) { // 接口定义,定义模式隐藏前后置、断言