fix: 修复单值图无数据时展示NaN问题
This commit is contained in:
@@ -211,6 +211,8 @@ export default {
|
|||||||
if (chartParams && chartParams.dataKey) {
|
if (chartParams && chartParams.dataKey) {
|
||||||
if (response.data.result && (response.data.result[chartParams.dataKey] || response.data.result[chartParams.dataKey] === 0)) {
|
if (response.data.result && (response.data.result[chartParams.dataKey] || response.data.result[chartParams.dataKey] === 0)) {
|
||||||
this.chartData = response.data.result[chartParams.dataKey]
|
this.chartData = response.data.result[chartParams.dataKey]
|
||||||
|
} else {
|
||||||
|
this.chartData = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user