Merge pull request #7031 from dataease/pr@dev@fix_mobile

fix: 修复普通用户移动端设计界面画布区域视图无法展示问题
This commit is contained in:
王嘉豪 2023-12-06 10:57:23 +08:00 committed by GitHub
commit f7ef7fc7dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -654,7 +654,7 @@ export default {
openMobileLayout(switchVal) { openMobileLayout(switchVal) {
if (switchVal) { if (switchVal) {
this.$store.commit('openMobileLayout') this.$store.commit('openMobileLayout')
bus.$emit('mobile-status-change', 'openMobileLayout', this.componentData) bus.$emit('mobile-status-change', 'openMobileLayout', { componentData: this.componentData, panelInfo: this.panelInfo })
} else { } else {
this.mobileLayoutSave() this.mobileLayoutSave()
} }

View File

@ -88,7 +88,8 @@ export default {
} }
if (event.data.type === 'openMobileLayout') { if (event.data.type === 'openMobileLayout') {
this.$store.commit('setComponentData', event.data.value) this.$store.commit('setComponentData', event.data.value.componentData)
this.$store.dispatch('panel/setPanelInfo', event.data.value.panelInfo)
this.$store.commit('openMobileLayout') this.$store.commit('openMobileLayout')
} }
}) })

View File

@ -888,7 +888,7 @@ export default {
methods: { methods: {
handleLoad() { handleLoad() {
this.mobileLoading = false this.mobileLoading = false
this.mobileStatusChange('openMobileLayout', this.componentData) this.mobileStatusChange('openMobileLayout', { componentData: this.componentData, panelInfo: this.panelInfo })
}, },
deleteComponentWithId(id) { deleteComponentWithId(id) {
for (let index = 0; index < this.pcComponentData.length; index++) { for (let index = 0; index < this.pcComponentData.length; index++) {