fix(移动端): 修复移动端成功上传背景图片,但下次进行编辑的时候背景图片不显示问题 #8239
This commit is contained in:
parent
8a58732e74
commit
5e843df8d9
@ -655,7 +655,7 @@ export default {
|
||||
openMobileLayout(switchVal) {
|
||||
if (switchVal) {
|
||||
this.$store.commit('openMobileLayout')
|
||||
bus.$emit('mobile-status-change', 'openMobileLayout', { componentData: this.componentData, panelInfo: this.panelInfo })
|
||||
bus.$emit('mobile-status-change', 'openMobileLayout', { componentData: this.componentData, panelInfo: this.panelInfo, canvasStyleData: this.canvasStyleData })
|
||||
} else {
|
||||
this.mobileLayoutSave()
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ import {
|
||||
} from '@/components/canvas/utils/utils'
|
||||
import { mapState } from 'vuex'
|
||||
import { hexColorToRGBA } from '@/views/chart/chart/util'
|
||||
import store from "@/store";
|
||||
import store from '@/store'
|
||||
export default {
|
||||
components: { DeCanvas, CanvasOptBar },
|
||||
data() {
|
||||
@ -90,6 +90,7 @@ export default {
|
||||
|
||||
if (event.data.type === 'openMobileLayout') {
|
||||
this.$store.commit('setComponentData', event.data.value.componentData)
|
||||
this.$store.commit('setCanvasStyle', event.data.value.canvasStyleData)
|
||||
this.$store.dispatch('panel/setPanelInfo', event.data.value.panelInfo)
|
||||
this.$store.commit('openMobileLayout')
|
||||
}
|
||||
|
||||
@ -136,6 +136,7 @@ export default {
|
||||
height: calc(100% - 40px);
|
||||
float: left;
|
||||
overflow-y: auto;
|
||||
background-size: 100% 100% !important;
|
||||
}
|
||||
|
||||
.component-custom {
|
||||
|
||||
@ -888,7 +888,7 @@ export default {
|
||||
methods: {
|
||||
handleLoad() {
|
||||
this.mobileLoading = false
|
||||
this.mobileStatusChange('openMobileLayout', { componentData: this.componentData, panelInfo: this.panelInfo })
|
||||
this.mobileStatusChange('openMobileLayout', { componentData: this.componentData, panelInfo: this.panelInfo, canvasStyleData: this.canvasStyleData })
|
||||
},
|
||||
deleteComponentWithId(id) {
|
||||
for (let index = 0; index < this.pcComponentData.length; index++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user