fix(视图): 指标卡没有数值时显示横线

This commit is contained in:
junjun 2022-09-13 13:37:18 +08:00
parent 3513bad8b8
commit f0041ac649

View File

@ -259,6 +259,10 @@ export default {
resultFormat() {
if (!this.chart.data) return
const value = this.chart.data.series[0].data[0]
if (value === null || value === undefined) {
this.result = '-'
return
}
let yAxis = []
try {
yAxis = JSON.parse(this.chart.yaxis)