canvas固定宽和高

This commit is contained in:
sowevo
2025-08-12 04:14:13 +08:00
parent a19042c655
commit 0a87bb1db1
+1 -1
View File
@@ -166,7 +166,7 @@ onMounted(async () => {
@click="goPlay" @click="goPlay"
> >
<template #image> <template #image>
<canvas ref="canvasRef" class="w-full h-full hidden" /> <canvas ref="canvasRef" width="640" height="360" class="w-full h-full hidden" />
<VImg :src="imgUrl" aspect-ratio="2/3" cover @load="imageLoadHandler" @error="imageErrorHandler"> <VImg :src="imgUrl" aspect-ratio="2/3" cover @load="imageLoadHandler" @error="imageErrorHandler">
<template #placeholder> <template #placeholder>
<div class="w-full h-full"> <div class="w-full h-full">