forked from github/dataease
fix: 背景图片空url 问题
This commit is contained in:
parent
776e1febc1
commit
104a8a48fa
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user