fix: 修改 pnpm7.x 版本打包时的类型错误

This commit is contained in:
奔跑的面条
2022-05-21 14:01:26 +08:00
parent 88073e97af
commit 68512206f7
5 changed files with 70 additions and 28 deletions
@@ -152,7 +152,7 @@ watch(() => targetData.value?.option?.dataset, (newData: {
source: any,
dimensions: any
} | null) => {
if (isObject(newData)) {
if (newData && isObject(newData)) {
// 只有 Echarts 数据才有对应的格式
source.value = isCharts.value ? newData.source : newData
if (isCharts.value) {