提交 104a8a48 authored 作者: wangjiahao's avatar wangjiahao

fix: 背景图片空url 问题

上级 776e1feb
...@@ -58,9 +58,13 @@ export default { ...@@ -58,9 +58,13 @@ export default {
}, },
computed: { computed: {
classBackground() { classBackground() {
if (this.importTemplateInfo.snapshot) {
return { return {
background: `url(${this.importTemplateInfo.snapshot}) no-repeat` background: `url(${this.importTemplateInfo.snapshot}) no-repeat`
} }
} else {
return {}
}
} }
}, },
watch: { watch: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论