diff --git a/frontend/src/components/pure/ms-code-editor/index.vue b/frontend/src/components/pure/ms-code-editor/index.vue index 585031a379..8c297adbfb 100644 --- a/frontend/src/components/pure/ms-code-editor/index.vue +++ b/frontend/src/components/pure/ms-code-editor/index.vue @@ -305,6 +305,8 @@ theme: currentTheme.value, }); + editor.getModel()?.setEOL(monaco.editor.EndOfLineSequence.LF); // 设置换行符 + // 监听值的变化 editor.onDidChangeModelContent(() => { const value = editor.getValue(); // 给父组件实时返回最新文本 diff --git a/frontend/src/views/api-test/scenario/locale/en-US.ts b/frontend/src/views/api-test/scenario/locale/en-US.ts index 5dab45a567..825b877269 100644 --- a/frontend/src/views/api-test/scenario/locale/en-US.ts +++ b/frontend/src/views/api-test/scenario/locale/en-US.ts @@ -31,7 +31,7 @@ export default { 'apiScenario.params.csvScopedTip1': 'Scenario level: Load CSV before executing the scenario. Data can be read from CSV in any step of the current scenario.', 'apiScenario.params.csvScopedTip2': - 'Step level: The CSV needs to be added to the scenario step. The CSV is loaded when executing this step, and the scope is the request within the step.', + 'Step level: The CSV needs to be added to the scenario step. The CSV is loaded when executing this loop step, and the scope is the request within the loop step.', 'apiScenario.params.searchPlaceholder': 'Search by name/tag', 'apiScenario.params.priority': 'Variable Priority: Temporary Parameters > Scenario Parameters > Environment Parameters > Global Parameters; Note: Avoid using variables with the same name. In case of same name variables, scenario-level CSV has the highest priority.', diff --git a/frontend/src/views/api-test/scenario/locale/zh-CN.ts b/frontend/src/views/api-test/scenario/locale/zh-CN.ts index acea62e92e..5da86afc58 100644 --- a/frontend/src/views/api-test/scenario/locale/zh-CN.ts +++ b/frontend/src/views/api-test/scenario/locale/zh-CN.ts @@ -29,7 +29,8 @@ export default { 'apiScenario.params.csvScoped': '作用域', 'apiScenario.params.file': '文件', 'apiScenario.params.csvScopedTip1': '场景级:执行场景前加载CSV,当前场景任意步骤均可从CSV中读取到数据', - 'apiScenario.params.csvScopedTip2': '步骤级:需在场景步骤中添加该CSV,执行该步骤时加载CSV,作用域为步骤内的请求', + 'apiScenario.params.csvScopedTip2': + '步骤级:需在循环步骤中添加该CSV,执行该循环步骤时加载CSV,作用域为循环步骤内的请求', 'apiScenario.params.config': '配置', 'apiScenario.params.csvConfig': 'CSV 配置', 'apiScenario.params.csvParamName': '参数名称',