diff --git a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue index 822f783874..c935d0da25 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue @@ -288,16 +288,23 @@ export default { this.buildReport(); } else if (this.isShare) { getShareScenarioReport(this.shareId, this.reportId, (data) => { - this.report = data || {}; - this.buildReport(); + this.handleGetScenarioReport(data); }); } else { getScenarioReport(this.reportId, (data) => { - this.report = data || {}; - this.buildReport(); + this.handleGetScenarioReport(data); }); } }, + handleGetScenarioReport(data) { + if (data) { + this.report = data; + this.buildReport(); + } else { + this.$emit('invisible'); + this.$warning('报告已删除'); + } + }, buildReport() { if (this.report) { if (this.isNotRunning) { diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index a1e57259e1..77c85da331 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -220,7 +220,7 @@ - + - +