From 41ac7ff3fdb1beddef023bb5150293af7a8abf97 Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Tue, 25 Jun 2024 18:43:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BC=96=E8=BE=91=E5=99=A8=E5=9B=9E=E8=BD=A6?= =?UTF-8?q?=E5=A4=9A=E4=BA=86=E6=96=9C=E6=9D=A0r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/pure/ms-code-editor/index.vue | 2 ++ frontend/src/views/api-test/scenario/locale/en-US.ts | 2 +- frontend/src/views/api-test/scenario/locale/zh-CN.ts | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) 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': '参数名称',