fix: 修复link monitor有些图没数据时没显示nodata的问题

This commit is contained in:
chenjinsong
2023-06-25 15:07:24 +08:00
parent ec4dbaf07d
commit 468026b3fa
2 changed files with 8 additions and 5 deletions

View File

@@ -138,10 +138,11 @@ export default {
}
}
})
this.isLinkNoData = linkGridData.length === 0
this.linkGridData = linkGridData
}
} else {
this.isLinkNoData = false
this.isLinkNoData = true
this.isLinkShowError = true
this.linkErrorMsg = this.errorMsgHandler(res[0])
}
@@ -227,10 +228,11 @@ export default {
}
}
})
this.isNextNoData = nextGridData.length === 0
this.nextGridData = nextGridData
}
} else {
this.isNextNoData = false
this.isNextNoData = true
this.isNextShowError = true
this.nextErrorMsg = this.errorMsgHandler(res[1])
}