Merge pull request #7441 from dataease/pr@dev@fix_mobile-adaptor

fix: 修复关闭组件自适应后,在手机端查看仪表板,视图字号特别大问题
This commit is contained in:
王嘉豪 2023-12-28 13:27:47 +08:00 committed by GitHub
commit 0cb9226e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -708,8 +708,8 @@ export default {
}
if (this.isMainCanvas()) {
this.$store.commit('setPreviewCanvasScale', {
scaleWidth: this.canvasStyleData.autoSizeAdaptor ? (this.scaleWidth / 100) : 1,
scaleHeight: this.canvasStyleData.autoSizeAdaptor ? (this.scaleHeight / 100) : 1
scaleWidth: (this.canvasStyleData.autoSizeAdaptor || this.terminal === 'mobile') ? (this.scaleWidth / 100) : 1,
scaleHeight: (this.canvasStyleData.autoSizeAdaptor || this.terminal === 'mobile') ? (this.scaleHeight / 100) : 1
})
}
this.handleScaleChange()