From 17d4c8af93aafb8cdd3f24ff126be1874124b0da Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Thu, 14 Jul 2022 17:21:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BBcase?= =?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA=20(#15798)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014874 --user=王孝刚 【接口测试】多次点击接口case列表执行按钮页面提示不友好 https://www.tapd.cn/55049933/s/1202115 Co-authored-by: wxg0103 <727495428@qq.com> --- .../src/business/components/api/definition/components/Run.vue | 2 +- frontend/src/i18n/en-US.js | 1 + frontend/src/i18n/zh-CN.js | 1 + frontend/src/i18n/zh-TW.js | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/definition/components/Run.vue b/frontend/src/business/components/api/definition/components/Run.vue index 605e8ee17a..6d84a56236 100644 --- a/frontend/src/business/components/api/definition/components/Run.vue +++ b/frontend/src/business/components/api/definition/components/Run.vue @@ -56,7 +56,7 @@ export default { }, onError() { this.$emit('runRefresh', ""); - this.$error("The connection is abnormal, please check the environment configuration"); + this.$error(this.$t('api_test.automation.rerun_warning')); }, onMessages(e) { // 确认连接建立成功,开始执行 diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index e07d66297a..636ebc44f3 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -1453,6 +1453,7 @@ export default { request_error: "error", generate_report: "Generate report", rerun: "fail and rerun", + rerun_warning: "The connection is abnormal, please check the environment configuration", rerun_success: "Rerun has already started, refresh the results later to view" }, environment: { diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 114c50e76e..15b20392ae 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -1461,6 +1461,7 @@ export default { request_error: "失败", generate_report: "生成报告", rerun: "失败重跑", + rerun_warning: "连接异常,请检查环境配置", rerun_success: "已经开始重跑,稍后刷新结果查看" }, environment: { diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 4d4725ffcc..340499ca13 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -1458,6 +1458,7 @@ export default { request_error: "失敗", generate_report: "生成報告", rerun: "失敗重跑", + rerun_warning: "連接異常,請檢查環境配置", rerun_success: "已經開始重跑,稍後重繪結果查看" }, environment: {