style: 去除多余代码

This commit is contained in:
奔跑的面条 2022-06-25 17:30:46 +08:00
parent 78626b3c04
commit cfa69baaa3

View File

@ -52,9 +52,6 @@ export const useChartDataFetch = (
if (vChartRef.value) {
vChartRef.value.setOption({ dataset: res.data })
}
} else {
// 若遵守规范使用 dataset 作为数据 key则会自动赋值数据
targetComponent.option.dataset && (targetComponent.option.dataset = res.data)
}
// 更新回调函数
if (updateCallback) {