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

This commit is contained in:
奔跑的面条
2022-05-21 14:01:26 +08:00
parent 2524b0ad2d
commit ea40cce9a4
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) {
@@ -94,7 +94,7 @@ const canvasPositionList = computed(() => {
// * 监听鼠标移动
watch(
() => chartEditStore.getMousePosition,
throttle(e => {
throttle((e: MouseEvent) => {
if (!isComputedLine.value) return
// 获取目标组件数据