无人机管理后台前端(已迁走)
chenyao
2025-09-10 dca066cf1c2eb04c1cf7bbd560eee4344e1ba34e
src/utils/rem.js
@@ -10,3 +10,10 @@
export const pxToRem = width => {
   return width * 0.1 + 'rem'
}
// 不带单位的px转rem
export const pxToRemNum = width => {
   const scale = document.documentElement.clientWidth / 192
   return width * 0.1 * scale
}