From bd7d3fe23edaff629b149e4e65507483f40622fa Mon Sep 17 00:00:00 2001 From: tnt group Date: Sat, 8 Oct 2022 11:44:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=A0=E7=94=BB?= =?UTF-8?q?=E5=B8=83=E6=9C=AA=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E8=89=B2=E6=88=96=E8=83=8C=E6=99=AF=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=A2=84=E8=A7=88=E6=97=B6=E7=9A=84=E6=B7=B7?= =?UTF-8?q?=E5=90=88=E7=8A=B6=E6=80=81=E6=9C=AA=E7=94=9F=E6=95=88=E9=97=AE?= =?UTF-8?q?=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 6cd25cba..507c7a22 100644 --- a/src/views/preview/utils/style.ts +++ b/src/views/preview/utils/style.ts @@ -33,7 +33,7 @@ export const getStatusStyle = (attr: StatusType) => { export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => { // 背景 const computedBackground = canvas.selectColor - ? { background: canvas.background } + ? { background: canvas.background || '#000000' } : { background: `url(${canvas.backgroundImage}) center center / cover no-repeat !important` }