fix: 解决滚动排名列表预览之后数据无法变更的问题

This commit is contained in:
奔跑的面条 2022-06-17 11:42:57 +08:00
parent a0ecfa7264
commit 954de6d58b

View File

@ -164,17 +164,19 @@ watch(
} }
) )
// //
watch( watch(
() => props.chartConfig.option, () => props.chartConfig.option.dataset,
() => { () => {
console.log('数据更新', props.chartConfig.option)
onRestart() onRestart()
}, }
{deep:true}
) )
useChartDataFetch(props.chartConfig, useChartEditStore) // callback
useChartDataFetch(props.chartConfig, useChartEditStore, (resData: any[]) => {
props.chartConfig.option.dataset = resData
onRestart()
})
onUnmounted(() => { onUnmounted(() => {
stopAnimation() stopAnimation()