NEZ-3008 fix:页面初始化时 zoom弹窗国际化错误
This commit is contained in:
@@ -54,7 +54,6 @@ export default {
|
|||||||
let lastPixelRatio = originPixelRatio
|
let lastPixelRatio = originPixelRatio
|
||||||
const currentPixelRatio = window.devicePixelRatio
|
const currentPixelRatio = window.devicePixelRatio
|
||||||
if (currentPixelRatio !== lastPixelRatio) {
|
if (currentPixelRatio !== lastPixelRatio) {
|
||||||
// console.log('缩放比例是:' + Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%');
|
|
||||||
// 计算缩放百分比
|
// 计算缩放百分比
|
||||||
const zoom = Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%'
|
const zoom = Math.round(1000 * (currentPixelRatio / originPixelRatio)) / 10 + '%'
|
||||||
if (zoom != '100%') {
|
if (zoom != '100%') {
|
||||||
|
|||||||
@@ -93,6 +93,10 @@ const newcn = {
|
|||||||
disabled: '已禁用',
|
disabled: '已禁用',
|
||||||
unavailable: '不可用'
|
unavailable: '不可用'
|
||||||
},
|
},
|
||||||
|
tip: {
|
||||||
|
zoomStatusPrompt: '您的浏览器目前处于缩放状态,页面可能会出现错位,建议100%大小。',
|
||||||
|
doNotAskAgain: '不再询问'
|
||||||
|
},
|
||||||
...zhLocale
|
...zhLocale
|
||||||
}
|
}
|
||||||
export default newcn
|
export default newcn
|
||||||
|
|||||||
@@ -101,6 +101,10 @@ const newen = {
|
|||||||
disabled: 'Disabled',
|
disabled: 'Disabled',
|
||||||
unavailable: 'Unavailable'
|
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
|
...enLocale
|
||||||
}
|
}
|
||||||
export default newen
|
export default newen
|
||||||
|
|||||||
Reference in New Issue
Block a user