diff --git a/frontend/src/views/api-test/components/condition/list.vue b/frontend/src/views/api-test/components/condition/list.vue
index 5830ef65a1..2f242d5aed 100644
--- a/frontend/src/views/api-test/components/condition/list.vue
+++ b/frontend/src/views/api-test/components/condition/list.vue
@@ -83,21 +83,6 @@
];
watchEffect(() => {
- // 后台存储无id,渲染时需要手动添加一次
- let hasNoIdItem = false;
- const tempArr = props.list.map((item, i) => {
- if (!item.id) {
- hasNoIdItem = true;
- return {
- ...item,
- id: new Date().getTime() + i,
- };
- }
- return item;
- });
- if (hasNoIdItem) {
- data.value = tempArr;
- }
activeItem.value = data.value.find((item) => item.id === props.activeId) || data.value[0] || {};
emit('activeChange', activeItem.value);
});
diff --git a/frontend/src/views/api-test/components/requestComposition/index.vue b/frontend/src/views/api-test/components/requestComposition/index.vue
index 61c3c84921..4e1ee9b90c 100644
--- a/frontend/src/views/api-test/components/requestComposition/index.vue
+++ b/frontend/src/views/api-test/components/requestComposition/index.vue
@@ -105,17 +105,17 @@
/>
-
-
-
+
+
+
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+