refactor(接口测试): 优化插件被删除后的执行提示信息
--bug=1027487 --user=王孝刚 【接口测试】插件被删除-创建场景-场景导入-点击调试/保存/生成报告无提示-前端请求均失败 https://www.tapd.cn/55049933/s/1389408
This commit is contained in:
parent
ea19176cd4
commit
6ce7c26f4f
|
@ -146,7 +146,7 @@ export async function saveScenario(url, scenario, scenarioDefinition, _this, suc
|
|||
},
|
||||
(error) => {
|
||||
_this.isPreventReClick = false;
|
||||
_this.errorRefresh();
|
||||
_this.errorRefresh(error);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -66,8 +66,8 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
errorRefresh() {
|
||||
this.$emit('errorRefresh');
|
||||
errorRefresh(error) {
|
||||
this.$emit('errorRefresh', error);
|
||||
},
|
||||
run() {
|
||||
let testPlan = createComponent('TestPlan');
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue