//设置页面字体
window.addEventListener('DOMContentLoaded', () => {
const html = document.querySelector('html');
let size = window.innerWidth / 10;
size = size > 75 ? 75 : size;
html.style.fontSize = size + 'px';
})
//配置不同环境下是否启用debugger工具
// if(window.location.hostname != 'agent.ewszjk.m.jaeapp.com' || window.location.hostname != 'm.net'){
if (process.env.NODE_ENV !== 'production' || true) {
let el = document.createElement('div');
document.body.appendChild(el);
eruda.init({
container: el,
// tool: ['console', 'elements', 'network'],
useShadowDom: true
});
}