forked from github/dataease
fix(视图): 指标卡没有数值时显示横线
This commit is contained in:
parent
3513bad8b8
commit
f0041ac649
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user