diff --git a/src/packages/components/Charts/Bars/BarCommon/index.vue b/src/packages/components/Charts/Bars/BarCommon/index.vue index 7f86ca6b..c2918b48 100644 --- a/src/packages/components/Charts/Bars/BarCommon/index.vue +++ b/src/packages/components/Charts/Bars/BarCommon/index.vue @@ -52,6 +52,7 @@ watch( () => props.chartConfig.option.dataset, (newData: { dimensions: any }, oldData) => { try { + debugger if (!isObject(newData) || !('dimensions' in newData)) return if (Array.isArray(newData?.dimensions)) { const seriesArr = [] @@ -69,7 +70,7 @@ watch( for (let i = 0; i < dimensionsGap; i++) { seriesArr.push(cloneDeep(seriesItem)) } - props.chartConfig.option.series = [...seriesArr] + props.chartConfig.option.series.push(...seriesArr) } replaceMergeArr.value = ['series'] nextTick(() => {