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