fix: 背景图片空url 问题

This commit is contained in:
wangjiahao 2021-05-08 11:04:58 +08:00
parent 776e1febc1
commit 104a8a48fa

View File

@ -58,8 +58,12 @@ export default {
}, },
computed: { computed: {
classBackground() { classBackground() {
return { if (this.importTemplateInfo.snapshot) {
background: `url(${this.importTemplateInfo.snapshot}) no-repeat` return {
background: `url(${this.importTemplateInfo.snapshot}) no-repeat`
}
} else {
return {}
} }
} }
}, },