提交 7ff46ff8 authored 作者: wangjiahao's avatar wangjiahao

fix: 背景图片空url 问题

上级 104a8a48
...@@ -22,9 +22,13 @@ export default { ...@@ -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 {}
} }
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论