From 53ee6537e030ac51e445e10e9b4ea4c913f1524e Mon Sep 17 00:00:00 2001 From: zyh Date: Mon, 24 Jul 2023 11:37:57 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3008=20fix=EF=BC=9A=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=20zoom=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/browserWindowZoom.vue | 1 - nezha-fronted/src/components/common/language/newcn.js | 4 ++++ nezha-fronted/src/components/common/language/newen.js | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/browserWindowZoom.vue b/nezha-fronted/src/components/common/browserWindowZoom.vue index 2e7da6fa0..daa22b188 100644 --- a/nezha-fronted/src/components/common/browserWindowZoom.vue +++ b/nezha-fronted/src/components/common/browserWindowZoom.vue @@ -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%') { diff --git a/nezha-fronted/src/components/common/language/newcn.js b/nezha-fronted/src/components/common/language/newcn.js index e400ca910..386bdd797 100644 --- a/nezha-fronted/src/components/common/language/newcn.js +++ b/nezha-fronted/src/components/common/language/newcn.js @@ -93,6 +93,10 @@ const newcn = { disabled: '已禁用', unavailable: '不可用' }, + tip: { + zoomStatusPrompt: '您的浏览器目前处于缩放状态,页面可能会出现错位,建议100%大小。', + doNotAskAgain: '不再询问' + }, ...zhLocale } export default newcn diff --git a/nezha-fronted/src/components/common/language/newen.js b/nezha-fronted/src/components/common/language/newen.js index 143b8efe5..f4fca92bb 100644 --- a/nezha-fronted/src/components/common/language/newen.js +++ b/nezha-fronted/src/components/common/language/newen.js @@ -101,6 +101,10 @@ const newen = { disabled: 'Disabled', unavailable: 'Unavailable' }, + tip: { + zoomStatusPrompt: 'Your browser is currently in zoom state, the page may appear dislocation, the proposed 100% size.', + doNotAskAgain: 'Do not ask again' + }, ...enLocale } export default newen