diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index d023c131f5..5d93b4694a 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -330,14 +330,13 @@ if (tmp.id) { url = "/api/testcase/update"; } else { + tmp.id = tmp.request.id; tmp.request.path = this.api.path; if (tmp.request.protocol != "dubbo://" && tmp.request.protocol != "DUBBO") { tmp.request.method = this.api.method; } } - tmp.id = tmp.request.id; - if (tmp.request.esbDataStruct != null) { tmp.esbDataStruct = JSON.stringify(tmp.request.esbDataStruct); }