fix: 处理移动记录的类型错误bug

This commit is contained in:
奔跑的面条
2022-08-30 18:48:48 +08:00
parent df10ae58f4
commit 085c393767
2 changed files with 6 additions and 1 deletions
@@ -85,6 +85,8 @@ const canvasPositionList = computed(() => {
h: cloneDeep(chartEditStore.getEditCanvasConfig.height), h: cloneDeep(chartEditStore.getEditCanvasConfig.height),
x: 0, x: 0,
y: 0, y: 0,
offsetX: 0,
offsetY: 0,
zIndex: 0 zIndex: 0
} }
} }
@@ -41,7 +41,10 @@ watch(
// 宽 // 宽
w: 0, w: 0,
// 高 // 高
h: 0 h: 0,
// 偏移
offsetX: 0,
offsetY: 0
} }
// 处理位置 // 处理位置