diff --git a/src/components/miliu-autograph/miliu-autograph.vue b/src/components/miliu-autograph/miliu-autograph.vue index fafb713..182c0a5 100644 --- a/src/components/miliu-autograph/miliu-autograph.vue +++ b/src/components/miliu-autograph/miliu-autograph.vue @@ -70,7 +70,6 @@ const touchstart = (e) => { let startPoint = { X: startX, Y: startY } points.push(startPoint) canvaCtx.beginPath() - hasDrawn.value = true // 标记已签名 } // 触摸移动 const touchmove = (e) => { @@ -80,6 +79,7 @@ const touchmove = (e) => { points.push(movePoint) if (points.length >= 2) { draw() + hasDrawn.value = true // 标记已签名 } } // 绘制