fix: 优化画板,避免卡顿
This commit is contained in:
parent
a1b0764e99
commit
113910a0a3
2
.env
2
.env
@ -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_OSS_URL = https://lxx-web-1313840333.cos.ap-chengdu.myqcloud.com
|
||||||
VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com
|
VITE_CDN_URL = https://dmgcdn-1313840333.cos.ap-guangzhou.myqcloud.com
|
||||||
VITE_SERVER_URL = https://ai.lingxixue.com/api/main
|
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_INIT_VCONSOLE = 0
|
||||||
VITE_TEACHER_ADMIN_URL = https://edu.lingxixue.com
|
VITE_TEACHER_ADMIN_URL = https://edu.lingxixue.com
|
||||||
|
|||||||
@ -195,8 +195,8 @@ onMounted(() => {
|
|||||||
canvasRef.value.height = canvasPanelRef.value.clientHeight
|
canvasRef.value.height = canvasPanelRef.value.clientHeight
|
||||||
signaturePad = new SignaturePad(canvasRef.value, {
|
signaturePad = new SignaturePad(canvasRef.value, {
|
||||||
backgroundColor: props.bg,
|
backgroundColor: props.bg,
|
||||||
throttle: 16,
|
throttle: 24,
|
||||||
minDistance: 1,
|
minDistance: 2.5,
|
||||||
})
|
})
|
||||||
fillCanvasBackground()
|
fillCanvasBackground()
|
||||||
}
|
}
|
||||||
|
|||||||
@ -353,8 +353,6 @@ watch(showCanvas, async (nv: boolean) => {
|
|||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: rgba(0, 0, 0, 0.45);
|
|
||||||
backdrop-filter: blur(4px);
|
|
||||||
background: #f7faf9;
|
background: #f7faf9;
|
||||||
.drawn-box {
|
.drawn-box {
|
||||||
height: calc(100% - 100px);
|
height: calc(100% - 100px);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user