From 1c28d6bee3a0cd66c08e8baa94586c791786a697 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 17 Sep 2021 16:35:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89)=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E6=B7=BB=E5=8A=A0rest?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/request/http/ApiHttpRequestForm.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 b916462c03..7d184b7bcf 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 @@ -262,7 +262,19 @@ export default { } } if (isAdd) { - this.request.arguments.unshift(obj); + switch (this.activeName) { + case "parameters": + this.request.arguments.unshift(obj); + break; + case "rest": + this.request.rest.unshift(obj); + break; + case "headers": + this.request.headers.unshift(obj); + break; + default: + break; + } } } },