fix(仪表板): 修复部分Tab页面内容不显示问题

This commit is contained in:
wangjiahao 2022-11-29 12:02:01 +08:00
parent 822de40487
commit 97c6158011

View File

@ -569,7 +569,7 @@ const data = {
// 移动端布局转换
state.componentData.forEach(item => {
item.mobileStyle = (item.mobileStyle || BASE_MOBILE_STYLE)
if (item.mobileSelected) {
if (item.mobileSelected || item.canvasId !== 'canvas-main') {
item.style.width = item.mobileStyle.style.width
item.style.height = item.mobileStyle.style.height
item.style.top = item.mobileStyle.style.top