From 3eb35272263528e66c1308fbe22d3e9abf6d1112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Fri, 5 Aug 2022 08:32:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E5=9B=BE=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/preview/utils/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/preview/utils/style.ts b/src/views/preview/utils/style.ts index 1ae54448..8392c348 100644 --- a/src/views/preview/utils/style.ts +++ b/src/views/preview/utils/style.ts @@ -28,7 +28,7 @@ export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => { const computedBackground = canvas.selectColor ? { background: canvas.background } : { - background: `url(${canvas.backgroundImage}) no-repeat center/100% !important` + background: `url(${canvas.backgroundImage}) center center / cover no-repeat !important` } return { position: 'relative' as const,