web
6 天以前 c9e42b64faf5cf702c2f887071193c10d8b8c842
src/utils/rem.js
@@ -4,5 +4,5 @@
    const newVal = Math.round((windowWidth / 1920) * baseFontSize)
    document.documentElement.style.fontSize = `${newVal}px`;
}
resize()
window.addEventListener('resize', resize);