Merge pull request #13023 from dataease/pr@dev-v2@refact_mobile

fix(仪表板): 修复部分组件移动端编辑时不显示问题
This commit is contained in:
王嘉豪 2024-10-30 17:12:57 +08:00 committed by GitHub
commit 9343415b24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,11 +59,10 @@ const handleLoad = () => {
//
if (!!mobileViewInfo) {
Object.keys(mobileViewInfo).forEach(key => {
const { customAttrMobile, customStyleMobile } = canvasViewInfo.value[key]
mobileViewInfo[key]['customAttr'] =
customAttrMobile || canvasViewInfo.value[key]['customAttrMobile']
mobileViewInfo[key]['customStyle'] =
customStyleMobile || canvasViewInfo.value[key]['customStyleMobile']
const { customAttrMobile, customStyleMobile, customAttr, customStyle } =
canvasViewInfo.value[key]
mobileViewInfo[key]['customAttr'] = customAttrMobile || customAttr
mobileViewInfo[key]['customStyle'] = customStyleMobile || customStyle
})
}
canvasViewInfoMobile.value = mobileViewInfo