From 7af8bc96c871a89abb7d682f502b4e85b927b4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Fri, 9 Jan 2026 17:10:51 +0800 Subject: [PATCH] 1 --- src/component/Canvas/pingpu.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/component/Canvas/pingpu.vue b/src/component/Canvas/pingpu.vue index 59d53846..08f8c1dc 100644 --- a/src/component/Canvas/pingpu.vue +++ b/src/component/Canvas/pingpu.vue @@ -101,7 +101,7 @@ const action = e.action; const list = []; const id = object.id; - if (action === "drag") { + if (action === "drag" || action === "rotate") { list.push({ id: id, action: ACTIONS.UPDATE, @@ -114,13 +114,14 @@ key: KEYS.O_LEFT, value: object.left, }); - } else if (action === "rotate") { - list.push({ - id: id, - action: ACTIONS.UPDATE, - key: KEYS.O_ANGLE, - value: object.angle, - }); + if (action === "rotate") { + list.push({ + id: id, + action: ACTIONS.UPDATE, + key: KEYS.O_ANGLE, + value: object.angle, + }); + } } else if (action === "scale") { list.push({ id: id,