diff --git a/frontend/src/components/business/ms-params-input/locale/zh-CN.ts b/frontend/src/components/business/ms-params-input/locale/zh-CN.ts index b84754dfa9..a1eb567b91 100644 --- a/frontend/src/components/business/ms-params-input/locale/zh-CN.ts +++ b/frontend/src/components/business/ms-params-input/locale/zh-CN.ts @@ -19,8 +19,8 @@ export default { 'ms.paramsInput.minIntegerPlaceholder': '输入整数,如 1', 'ms.paramsInput.float': '浮点数', 'ms.paramsInput.floatDesc': '返回一个随机的浮点数,整数1-10,小数部分位数的最小值2,最大值5', - 'ms.paramsInput.floatMin': '小数位数最小值', - 'ms.paramsInput.floatMax': '小数位数最大值', + 'ms.paramsInput.floatMin': '小数部分位数最小值', + 'ms.paramsInput.floatMax': '小数部分位数最大值', 'ms.paramsInput.floatIntegerMin': '整数部分最小值', 'ms.paramsInput.floatIntegerMax': '整数部分最大值', 'ms.paramsInput.commonPlaceholder': '请输入', diff --git a/frontend/src/views/api-test/components/condition/content.vue b/frontend/src/views/api-test/components/condition/content.vue index 53235fe12c..cf982c32a4 100644 --- a/frontend/src/views/api-test/components/condition/content.vue +++ b/frontend/src/views/api-test/components/condition/content.vue @@ -317,10 +317,9 @@ /> -
+
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 @@ />
- - - + +