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

Merge pull request #1860 from dataease/v1.8

V1.8
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
}, },
computed: { computed: {
itemActive() { itemActive() {
return this.curComponent.commonBackground && this.curComponent.commonBackground.innerImage === this.template.url return this.curComponent && this.curComponent.commonBackground && this.curComponent.commonBackground.innerImage === this.template.url
}, },
classBackground() { classBackground() {
if (this.template.url) { if (this.template.url) {
......
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
} }
}, },
mounted() { mounted() {
if (this.curComponent.commonBackground && this.curComponent.commonBackground.outerImage && typeof (this.curComponent.commonBackground.outerImage) === 'string') { if (this.curComponent && this.curComponent.commonBackground && this.curComponent.commonBackground.outerImage && typeof (this.curComponent.commonBackground.outerImage) === 'string') {
this.fileList.push({ url: this.curComponent.commonBackground.outerImage }) this.fileList.push({ url: this.curComponent.commonBackground.outerImage })
} }
this.backgroundOrigin = deepCopy(this.curComponent.commonBackground) this.backgroundOrigin = deepCopy(this.curComponent.commonBackground)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论