fix: 修复设计业务组件,生成的图片和页面展示背景色有出入的问题

main
wu.jian2 2 years ago
parent 7ec9fe32fd
commit fc59f0217f

@ -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`

Loading…
Cancel
Save