Merge remote-tracking branch 'origin/master'

main
liu.shiyi 2 years ago
commit 24ab846d3a

@ -408,7 +408,9 @@ export default {
const node = document.querySelector('.remote-preview-inner-wrap') const node = document.querySelector('.remote-preview-inner-wrap')
// node // node
const childrenNode = node.children[0] const childrenNode = node.children[0]
toPng(childrenNode) // childrenNode
childrenNode.style.backgroundColor = 'var(--bs-background-1)'
toJpeg(childrenNode)
.then((dataUrl) => { .then((dataUrl) => {
const link = document.createElement('a') const link = document.createElement('a')
link.download = `${this.form.name}.png` link.download = `${this.form.name}.png`

Loading…
Cancel
Save