From 6ce7c26f4f42f4599245c2692fa98965c0a1654d Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 4 Jul 2023 19:47:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E6=8F=92=E4=BB=B6=E8=A2=AB=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=90=8E=E7=9A=84=E6=89=A7=E8=A1=8C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027487 --user=王孝刚 【接口测试】插件被删除-创建场景-场景导入-点击调试/保存/生成报告无提示-前端请求均失败 https://www.tapd.cn/55049933/s/1389408 --- api-test/frontend/src/business/automation/api-automation.js | 2 +- .../frontend/src/business/automation/scenario/DebugRun.vue | 4 ++-- .../src/business/automation/scenario/EditApiScenario.vue | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/api-test/frontend/src/business/automation/api-automation.js b/api-test/frontend/src/business/automation/api-automation.js index 1f94dee1d1..8a0f483fa0 100644 --- a/api-test/frontend/src/business/automation/api-automation.js +++ b/api-test/frontend/src/business/automation/api-automation.js @@ -146,7 +146,7 @@ export async function saveScenario(url, scenario, scenarioDefinition, _this, suc }, (error) => { _this.isPreventReClick = false; - _this.errorRefresh(); + _this.errorRefresh(error); } ); } diff --git a/api-test/frontend/src/business/automation/scenario/DebugRun.vue b/api-test/frontend/src/business/automation/scenario/DebugRun.vue index 0f2116b460..5b41b1c5c0 100644 --- a/api-test/frontend/src/business/automation/scenario/DebugRun.vue +++ b/api-test/frontend/src/business/automation/scenario/DebugRun.vue @@ -66,8 +66,8 @@ export default { } } }, - errorRefresh() { - this.$emit('errorRefresh'); + errorRefresh(error) { + this.$emit('errorRefresh', error); }, run() { let testPlan = createComponent('TestPlan'); diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 4856f1cad0..7f7986f0ef 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -2203,6 +2203,9 @@ export default { } }, errorRefresh(error) { + if (error && error.response && error.response.status === 400) { + this.$error(this.$t('automation.scenario_plugin_run_warning')); + } this.debug = false; this.isTop = false; this.debugLoading = false;