mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
fix: 柱状图传入错误数据后展示问题
This commit is contained in:
parent
93f398d5a7
commit
8e1731354c
@ -64,7 +64,7 @@ watch(
|
|||||||
if (dimensionsGap < 0) {
|
if (dimensionsGap < 0) {
|
||||||
props.chartConfig.option.series.splice(newDimensions - 1)
|
props.chartConfig.option.series.splice(newDimensions - 1)
|
||||||
} else if (dimensionsGap > 0) {
|
} else if (dimensionsGap > 0) {
|
||||||
if(!oldData || !oldData?.dimensions || !Array.isArray(oldData?.dimensions)) {
|
if(!oldData || !oldData?.dimensions || !Array.isArray(oldData?.dimensions) || !oldData?.dimensions.length ) {
|
||||||
props.chartConfig.option.series=[]
|
props.chartConfig.option.series=[]
|
||||||
}
|
}
|
||||||
for (let i = 0; i < dimensionsGap; i++) {
|
for (let i = 0; i < dimensionsGap; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user