fix: 背景图片空url 问题

This commit is contained in:
wangjiahao 2021-05-08 11:06:45 +08:00
parent 104a8a48fa
commit 7ff46ff804

View File

@ -22,9 +22,13 @@ export default {
}, },
computed: { computed: {
classBackground() { classBackground() {
return { if (this.template.snapshot) {
background: `url(${this.template.snapshot}) no-repeat`, return {
'background-size': `100% 100%` background: `url(${this.template.snapshot}) no-repeat`,
'background-size': `100% 100%`
}
} else {
return {}
} }
} }
}, },