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
@@ -57,7 +57,11 @@ const option = shallowReactive({
watch(
() => props.chartConfig.option.dataset,
(newData: any) => {
option.dataset = toNumber(newData, 2)
try {
option.dataset = toNumber(newData, 2)
} catch (error) {
console.log(error)
}
},
{
deep: false