Merge pull request #1860 from dataease/v1.8

V1.8
This commit is contained in:
王嘉豪 2022-03-01 16:54:45 +08:00 committed by GitHub
commit f951ac0405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export default {
},
computed: {
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() {
if (this.template.url) {

View File

@ -102,7 +102,7 @@ export default {
}
},
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.backgroundOrigin = deepCopy(this.curComponent.commonBackground)