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