Unverified 提交 cc6f6949 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

Merge pull request #1719 from dataease/pr@dev@fix_panel-edit

fix: 仪表板背景由颜色切换为图片,未加图片时背景颜色依然存在问题
...@@ -18,6 +18,11 @@ export default { ...@@ -18,6 +18,11 @@ export default {
mainHeight: '100vh!important' mainHeight: '100vh!important'
} }
}, },
watch: {
'$route.params.reportId': function() {
this.restore()
}
},
computed: { computed: {
bgStyle() { bgStyle() {
if (this.backScreenShot) { if (this.backScreenShot) {
......
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
mobileCanvasStyle() { mobileCanvasStyle() {
let style let style
if (this.canvasStyleData.openCommonStyle) { 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 = { style = {
background: `url(${this.canvasStyleData.panel.imageUrl}) no-repeat` background: `url(${this.canvasStyleData.panel.imageUrl}) no-repeat`
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论