处理Anaysis Sources Alarms 无数据时的状态显示问题

This commit is contained in:
任珮宇 2024-03-06 13:36:49 +08:00
parent 94977a59c7
commit a20853ad51

View File

@ -109,9 +109,11 @@ export default {
.then((res) => {
this.spinning = false
if (res.success) {
this.pieData = res.result.pieData
this.pieTotal = res.result.pieTotal
this.drawRightChart()
if (res.result.pieTotal > 0) {
this.pieData = res.result.pieData
this.pieTotal = res.result.pieTotal
this.drawRightChart()
}
} else {
this.$message.warning('This operation fails. Contact your system administrator')
}