Merge pull request #1719 from dataease/pr@dev@fix_panel-edit
fix: 仪表板背景由颜色切换为图片,未加图片时背景颜色依然存在问题
This commit is contained in:
commit
cc6f69493b
@ -18,6 +18,11 @@ export default {
|
||||
mainHeight: '100vh!important'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'$route.params.reportId': function() {
|
||||
this.restore()
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
bgStyle() {
|
||||
if (this.backScreenShot) {
|
||||
|
||||
@ -344,7 +344,7 @@ export default {
|
||||
mobileCanvasStyle() {
|
||||
let style
|
||||
if (this.canvasStyleData.openCommonStyle) {
|
||||
if (this.canvasStyleData.panel.backgroundType === 'image' && this.canvasStyleData.panel.imageUrl) {
|
||||
if (this.canvasStyleData.panel.backgroundType === 'image' && typeof (this.canvasStyleData.panel.imageUrl) === 'string') {
|
||||
style = {
|
||||
background: `url(${this.canvasStyleData.panel.imageUrl}) no-repeat`
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user