JSON 根类型:
@@ -22,25 +18,11 @@
-
+
-
+
-
+
diff --git a/src/workbench/browser/src/app/pages/api/edit/body/api-edit-body.component.ts b/src/workbench/browser/src/app/pages/api/edit/body/api-edit-body.component.ts
index 06989d0b2..0859ca405 100644
--- a/src/workbench/browser/src/app/pages/api/edit/body/api-edit-body.component.ts
+++ b/src/workbench/browser/src/app/pages/api/edit/body/api-edit-body.component.ts
@@ -92,6 +92,10 @@ export class ApiEditBodyComponent implements OnInit, OnChanges, OnDestroy {
}
}
+ beforeHandleImport(result) {
+ this.jsonRootType = Array.isArray(result) ? 'array' : 'object';
+ }
+
handleParamsImport(data) {
this.model = data;
this.modelChange.emit(data);
diff --git a/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.html b/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.html
index 8284f5b91..c7beb271a 100644
--- a/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.html
+++ b/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.html
@@ -31,13 +31,8 @@
-
+
@@ -50,20 +45,10 @@
-
+
@@ -96,21 +81,16 @@
-
+
{{
node.origin.method.slice(0, 4)
- }}
+ }}
{{ node.title }}