From 2ef10fc9596fd70941779442b910ee593018b78f Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 9 Jan 2023 19:10:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=B8=A6=E6=9D=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1010649 --user=郭雨琦 https://www.tapd.cn/55049933/prong/stories/view/1155049933001010649?url_cache_key=from_url_iteration_list_af1c2a348ba1b2cbec7f7734af247d0e&action_entry_type=stories --- .../definition/components/complete/EditCompleteHTTPApi.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue b/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue index 49925e5366..97f87d403b 100644 --- a/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue +++ b/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue @@ -672,6 +672,9 @@ export default { this.request.body.kvs = requestKvs; this.beforeRequest.body.kvs = beforeKvs } + if (Object.keys(this.request.body).indexOf('type')) { + this.beforeRequest.body.type = this.request.body.type + } let submitRequestBody = JSON.stringify(this.request.body); let beforeRequestBody = JSON.stringify(this.beforeRequest.body); if (submitRequestBody !== beforeRequestBody && !this.noShowSyncRuleRelation) {