fix: 解决饼图会自动轮播的问题

This commit is contained in:
奔跑的面条 2023-12-16 21:44:12 +08:00
parent 78c63298d7
commit 02b423e620

View File

@ -134,7 +134,10 @@ watch(
)
const { vChartRef } = useChartDataFetch(props.chartConfig, useChartEditStore, (newData: typeof dataJson) => {
addPieInterval(newData)
clearPieInterval()
if (props.chartConfig.option.isCarousel) {
addPieInterval(newData)
}
})
onMounted(() => {