perf: 优化异常处理

This commit is contained in:
奔跑的面条
2022-10-12 21:57:30 +08:00
parent b2eb54ca4b
commit 37593bc257
21 changed files with 390 additions and 307 deletions
@@ -75,7 +75,11 @@ const dataSetHandle = (dataset: typeof dataJson) => {
watch(
() => props.chartConfig.option.dataset,
newData => {
dataSetHandle(newData)
try {
dataSetHandle(newData)
} catch (error) {
console.log(error)
}
},
{
deep: false