NEZ-3008 fix:页面初始化时 zoom弹窗国际化错误

This commit is contained in:
zyh
2023-07-24 11:37:57 +08:00
parent 2dc3dd7332
commit 53ee6537e0
3 changed files with 8 additions and 1 deletions

View File

@@ -54,7 +54,6 @@ export default {
let lastPixelRatio = originPixelRatio
const currentPixelRatio = window.devicePixelRatio
if (currentPixelRatio !== lastPixelRatio) {
// console.log('缩放比例是:' + Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%');
// 计算缩放百分比
const zoom = Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%'
if (zoom != '100%') {