提交 44c8e50f authored 作者: wangjiahao's avatar wangjiahao

fix: 修复图片样式打不开问题

上级 607680ee
...@@ -110,6 +110,7 @@ import { mapState } from 'vuex' ...@@ -110,6 +110,7 @@ import { mapState } from 'vuex'
import { deepCopy } from '@/components/canvas/utils/utils' import { deepCopy } from '@/components/canvas/utils/utils'
import { COLOR_PANEL } from '@/views/chart/chart/chart' import { COLOR_PANEL } from '@/views/chart/chart/chart'
import { uploadFileResult } from '@/api/staticResource/staticResource' import { uploadFileResult } from '@/api/staticResource/staticResource'
import { COMMON_BACKGROUND_NONE } from '@/components/canvas/custom-component/component-list'
export default { export default {
name: 'Background', name: 'Background',
...@@ -144,7 +145,7 @@ export default { ...@@ -144,7 +145,7 @@ export default {
if (this.curComponent && 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 ? this.curComponent.commonBackground : COMMON_BACKGROUND_NONE)
this.queryBackground() this.queryBackground()
}, },
queryBackground() { queryBackground() {
......
...@@ -949,6 +949,7 @@ export default { ...@@ -949,6 +949,7 @@ export default {
hyperlinks: HYPERLINKS, hyperlinks: HYPERLINKS,
mobileStyle: BASE_MOBILE_STYLE, mobileStyle: BASE_MOBILE_STYLE,
propValue: fileResult, propValue: fileResult,
commonBackground: deepCopy(COMMON_BACKGROUND),
style: { style: {
...commonStyle ...commonStyle
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论