forked from drone/command-center-dashboard

shuishen
2025-04-17 6cf66e68f32d26b2b2a3ab3ac46fb99df5420d3a
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'
}