diff --git a/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiScenarioList.vue b/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiScenarioList.vue index 93d2eaebc1..c5fb00a7b1 100644 --- a/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiScenarioList.vue +++ b/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiScenarioList.vue @@ -484,14 +484,20 @@ export default { mode: "serial" }; if (this.planId) { + this.loading = true; testPlanScenarioCaseRun(param) .then((response) => { - this.runVisible = true; - if (response.data && response.data.length > 0) { - this.reportId = response.data[0].reportId; - } - this.search(); - }); + setTimeout(() => { + this.loading = false; + this.runVisible = true; + if (response.data && response.data.length > 0) { + this.reportId = response.data[0].reportId; + } + this.search(); + }, 2000) + }).catch(() => { + this.loading = false; + }); } }, buildExecuteParam(param, row) {