diff --git a/src/workbench/browser/src/app/pages/api/edit/api-edit.component.html b/src/workbench/browser/src/app/pages/api/edit/api-edit.component.html index 585817a3d..f146628f8 100644 --- a/src/workbench/browser/src/app/pages/api/edit/api-edit.component.html +++ b/src/workbench/browser/src/app/pages/api/edit/api-edit.component.html @@ -43,7 +43,7 @@ {{ panel.nzActive ? 'Shrink' : 'Expand' }} - + @@ -86,24 +86,6 @@ - - - Prescript - {{ - apiData.restParams | apiParamsNum - }} - - - - - - Post script - {{ - apiData.restParams | apiParamsNum - }} - - - diff --git a/src/workbench/browser/src/app/pages/api/edit/api-edit.component.ts b/src/workbench/browser/src/app/pages/api/edit/api-edit.component.ts index 06b685964..7acad0ab3 100644 --- a/src/workbench/browser/src/app/pages/api/edit/api-edit.component.ts +++ b/src/workbench/browser/src/app/pages/api/edit/api-edit.component.ts @@ -43,6 +43,7 @@ export class ApiEditComponent implements OnInit, OnDestroy { expandKeys: string[]; REQUEST_METHOD = objectToArray(RequestMethod); REQUEST_PROTOCOL = objectToArray(RequestProtocol); + nzSelectedIndex = 1; private destroy$: Subject = new Subject(); private changeGroupID$: Subject = new Subject(); @@ -117,7 +118,7 @@ export class ApiEditComponent implements OnInit, OnDestroy { if (typeof this.apiData[tableName] !== 'object') { return; } - formData[tableName] = (this.apiData[tableName]||[]).filter((val) => val.name); + formData[tableName] = (this.apiData[tableName] || []).filter((val) => val.name); if (['requestBody', 'responseBody'].includes(tableName)) { if (['xml', 'json'].includes(formData[`${tableName}Type`])) { formData[tableName] = listToTreeHasLevel(formData[tableName]);