refactor(接口测试): 优化插件被删除后的执行提示信息

--bug=1027487 --user=王孝刚 【接口测试】插件被删除-创建场景-场景导入-点击调试/保存/生成报告无提示-前端请求均失败
https://www.tapd.cn/55049933/s/1389408
This commit is contained in:
wxg0103 2023-07-04 19:47:07 +08:00 committed by 刘瑞斌
parent ea19176cd4
commit 6ce7c26f4f
3 changed files with 6 additions and 3 deletions

View File

@ -146,7 +146,7 @@ export async function saveScenario(url, scenario, scenarioDefinition, _this, suc
},
(error) => {
_this.isPreventReClick = false;
_this.errorRefresh();
_this.errorRefresh(error);
}
);
}

View File

@ -66,8 +66,8 @@ export default {
}
}
},
errorRefresh() {
this.$emit('errorRefresh');
errorRefresh(error) {
this.$emit('errorRefresh', error);
},
run() {
let testPlan = createComponent('TestPlan');

View File

@ -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;