forked from drone/command-center-dashboard

罗广辉
2025-04-02 e1699c4851f6ca397cd0ad1ff63f32c737654836
src/utils/rem.js
@@ -1,5 +1,5 @@
export function onResize() {
   const resize = ()=> {
   const resize = () => {
      const scale = document.documentElement.clientWidth / 192
      document.documentElement.style.fontSize = scale + 'px'
   }
@@ -8,6 +8,5 @@
}
export const pxToRem = width => {
   return width * 0.1 + 'rem';
};
   return width * 0.1 + 'rem'
}