fix: 优化画板,避免卡顿

This commit is contained in:
阿梦 2026-05-13 21:33:02 +09:00
parent a1b0764e99
commit 113910a0a3
3 changed files with 3 additions and 5 deletions

2
.env
View File

@ -2,6 +2,6 @@ VITE_WS_URL = wss://ai.lingxixue.com/ws/device
VITE_OSS_URL = https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com
VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com
VITE_SERVER_URL = https://ai.lingxixue.com/api/main
VITE_XXL_VERSION = 2.13.3
VITE_XXL_VERSION = 2.13.5
VITE_INIT_VCONSOLE = 0
VITE_TEACHER_ADMIN_URL = https://edu.lingxixue.com

View File

@ -195,8 +195,8 @@ onMounted(() => {
canvasRef.value.height = canvasPanelRef.value.clientHeight
signaturePad = new SignaturePad(canvasRef.value, {
backgroundColor: props.bg,
throttle: 16,
minDistance: 1,
throttle: 24,
minDistance: 2.5,
})
fillCanvasBackground()
}

View File

@ -353,8 +353,6 @@ watch(showCanvas, async (nv: boolean) => {
z-index: 10000;
width: 100vw;
height: 100%;
background-color: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(4px);
background: #f7faf9;
.drawn-box {
height: calc(100% - 100px);