fix: 背景图片空url 问题

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

View File

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