diff --git a/frontend/src/business/components/api/monitor/components/ApiErrorMonitorChart.vue b/frontend/src/business/components/api/monitor/components/ApiErrorMonitorChart.vue index ca7903e471..f5847b5f71 100644 --- a/frontend/src/business/components/api/monitor/components/ApiErrorMonitorChart.vue +++ b/frontend/src/business/components/api/monitor/components/ApiErrorMonitorChart.vue @@ -2,7 +2,7 @@ @@ -27,20 +27,15 @@ export default { }, methods: { click(params) { - //如果状态不是以2开头 - if (params.value.substr(0, 1) !== '2') { - let startTime = params.name; - this.result = this.$$get('/api/monitor/getReportId', {'startTime': startTime}, { - 'apiUrl': this.apiUrl - }, response => { - this.reportId = response.data; - let reportId = this.reportId - let url = '#/api/report/view/' + reportId; - let target = '_blank'; - window.open(url, target); - }); - } - + let startTime = params.name; + this.result = this.$$get('/api/monitor/getReportId', {'startTime': startTime}, { + 'apiUrl': this.apiUrl + }, response => { + this.reportId = response.data; + let reportId = this.reportId + let url = '#/api/report/view/' + reportId; + window.open(url, '_blank'); + }); }, getOptions() { return {