禁用zoom检查,算法不对,有些显示器(小米笔记本)默认为125

dev_aliyun_beta
hjm 6 years ago
parent f05d3ee1b2
commit 76c9020b76

@ -55,12 +55,12 @@ class Index extends Component {
window.$('#root').css('position', 'absolute') window.$('#root').css('position', 'absolute')
// TPI浏览器缩放 // TPI浏览器缩放
setTimeout(() => { // setTimeout(() => {
const agent = navigator.userAgent; // const agent = navigator.userAgent;
if (agent.indexOf('Mac OS') == -1) { // if (agent.indexOf('Mac OS') == -1) {
window._initZoomCheck() // window._initZoomCheck()
} // }
}, 800) // }, 800)
this.onDrawerButtonClick = this.onDrawerButtonClick.bind(this) this.onDrawerButtonClick = this.onDrawerButtonClick.bind(this)

Loading…
Cancel
Save