From fc59f0217fd4b2f19d2674263aacedd3ba14e352 Mon Sep 17 00:00:00 2001 From: "wu.jian2" Date: Thu, 21 Sep 2023 16:35:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=94=9F=E6=88=90?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E7=89=87=E5=92=8C=E9=A1=B5=E9=9D=A2=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E8=83=8C=E6=99=AF=E8=89=B2=E6=9C=89=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data-room-ui/packages/BizComponent/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data-room-ui/packages/BizComponent/index.vue b/data-room-ui/packages/BizComponent/index.vue index c71b6799..27b3820d 100644 --- a/data-room-ui/packages/BizComponent/index.vue +++ b/data-room-ui/packages/BizComponent/index.vue @@ -408,7 +408,9 @@ export default { const node = document.querySelector('.remote-preview-inner-wrap') // 获取node下的第一个子节点 const childrenNode = node.children[0] - toPng(childrenNode) + // 为childrenNode添加一个背景颜色 + childrenNode.style.backgroundColor = 'var(--bs-background-1)' + toJpeg(childrenNode) .then((dataUrl) => { const link = document.createElement('a') link.download = `${this.form.name}.png`