From 01c4684e01214c36778c755886b8c6ac400f5bd2 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 23 Jul 2021 11:12:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=9F=A9=E9=98=B5=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=82=B9=E5=87=BB=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B9=9F=E4=B8=8D=E9=9C=80=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/DeDrag/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue index 8c4b58fb29..b08dd10341 100644 --- a/frontend/src/components/DeDrag/index.vue +++ b/frontend/src/components/DeDrag/index.vue @@ -1448,6 +1448,7 @@ export default { }, // 记录当前样式 recordCurStyle() { + debugger const style = { ...this.defaultStyle } @@ -1462,6 +1463,7 @@ export default { // 记录当前样式 矩阵处理 recordMatrixCurStyle() { + debugger const left = Math.round(this.left / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth const top = Math.round(this.top / this.curCanvasScale.matrixStyleHeight) * this.curCanvasScale.matrixStyleHeight const width = Math.round(this.width / this.curCanvasScale.matrixStyleWidth) * this.curCanvasScale.matrixStyleWidth @@ -1474,7 +1476,7 @@ export default { style.width = width style.height = height style.rotate = this.rotate - this.hasMove = true + // this.hasMove = true this.$store.commit('setShapeStyle', style) }, mountedFunction() {