fix: 修复关闭组件自适应后,在手机端查看仪表板,视图字号特别大问题

This commit is contained in:
wangjiahao 2023-12-28 13:25:51 +08:00
parent 32632d5a25
commit d91a55550c

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()