From f06a99687154a22a9004e68494a3643a7635082c Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Thu, 11 Apr 2024 15:59:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E6=B2=A1=E6=9C=89=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E7=82=B9=E5=87=BB=E6=89=A7=E8=A1=8C=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1038445 --user=宋昌昌 【接口测试】场景-场景内步骤没有一个开启的-执行场景时给提示「没有开启的步骤」 https://www.tapd.cn/55049933/s/1494715 --- frontend/src/views/api-test/scenario/index.vue | 4 ++++ frontend/src/views/api-test/scenario/locale/en-US.ts | 1 + frontend/src/views/api-test/scenario/locale/zh-CN.ts | 1 + 3 files changed, 6 insertions(+) diff --git a/frontend/src/views/api-test/scenario/index.vue b/frontend/src/views/api-test/scenario/index.vue index d6bc6c41b9..794228f181 100644 --- a/frontend/src/views/api-test/scenario/index.vue +++ b/frontend/src/views/api-test/scenario/index.vue @@ -313,6 +313,10 @@ } return !!node.enable; }); + if (waitTingDebugSteps.length === 0) { + Message.warning(t('apiScenario.execute.no.step.tips')); + return; + } realExecute( { steps: waitTingDebugSteps, 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 1751ae5048..e05f954641 100644 --- a/frontend/src/views/api-test/scenario/locale/en-US.ts +++ b/frontend/src/views/api-test/scenario/locale/en-US.ts @@ -262,4 +262,5 @@ export default { 'apiScenario.schedule.table.tooltip.enable.two': 'Next run time: {time}', 'apiScenario.schedule.table.tooltip.disable': 'Scheduled task is disabled', 'apiScenario.save.env': 'Scenario Environment', + 'apiScenario.execute.no.step.tips': 'No open step', }; 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 30d9e934b9..ef60331a62 100644 --- a/frontend/src/views/api-test/scenario/locale/zh-CN.ts +++ b/frontend/src/views/api-test/scenario/locale/zh-CN.ts @@ -250,4 +250,5 @@ export default { 'apiScenario.schedule.table.tooltip.enable.two': '下次运行时间:{time}', 'apiScenario.schedule.table.tooltip.disable': '定时任务未开启', 'apiScenario.save.env': '场景保存的环境', + 'apiScenario.execute.no.step.tips': '没有开启的步骤', };