refactor(任务中心): 查看接口测试用例结果时任务中心不自动关闭

This commit is contained in:
shiziyuan9527 2021-08-31 17:40:22 +08:00 committed by 刘瑞斌
parent fae6cd1797
commit dc8f4e8fc2
1 changed files with 3 additions and 2 deletions

View File

@ -203,7 +203,7 @@ export default {
},
close() {
this.visible = false;
this.taskVisible = false;
// this.taskVisible = false;
this.showType = "";
if (this.websocket && this.websocket.close instanceof Function) {
this.websocket.close();
@ -240,14 +240,15 @@ export default {
if (status) {
status = row.executionStatus.toLowerCase();
if (status === 'saved' || status === 'completed' || status === 'success' || status === 'error') {
this.taskVisible = false;
switch (row.executionModule) {
case "SCENARIO":
this.taskVisible = false;
this.$router.push({
path: '/api/automation/report/view/' + row.id,
});
break;
case "PERFORMANCE":
this.taskVisible = false;
this.$router.push({
path: '/performance/report/view/' + row.id,
});