update src/views/chart/ContentEdit/components/EditRule/index.vue.

修改缩放画布时,标尺重绘出现错误。

Signed-off-by: zhong <1781507490@qq.com>
This commit is contained in:
zhong
2024-05-14 03:10:00 +00:00
committed by Gitee
parent f6d2c1fc52
commit 3976ef5101

View File

@@ -173,12 +173,12 @@ const canvasBox = () => {
}
// 重绘标尺
const reDraw = () => {
const reDraw = throttle(() => {
sketchRuleReDraw.value = false
setTimeout(() => {
sketchRuleReDraw.value = true
}, 10)
}
},20)
// 滚动居中
const canvasPosCenter = () => {
@@ -209,7 +209,7 @@ watch(
reDraw()
}, 400)
} else {
throttle(reDraw, 20)
reDraw();
}
}
)