Merge pull request #1492 from dataease/pr@dev@fix_panel-mobile

fix: 仪表板复制的组件,有可能默认进入移动端布局
This commit is contained in:
王嘉豪 2021-12-22 10:43:27 +08:00 committed by GitHub
commit 0eca3858cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,8 @@ export default {
}
const data = state.copyData.data
// 仪表板复制的组件默认不在移动端部署中mobileSelected = false
data.mobileSelected = false
if (!state.curComponent.auxiliaryMatrix) {
data.style.top += 20
data.style.left += 20