From 2a45e8331f65e4fc6dee2fba898bfbeaa01b0f5c Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 21 Apr 2025 16:34:15 +0800
Subject: [PATCH] Merge branch 'test' of http://139.196.74.78:10010/r/drone/command-center-dashboard into test
---
src/utils/rem.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/utils/rem.js b/src/utils/rem.js
index 1062416..741e12b 100644
--- a/src/utils/rem.js
+++ b/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'
+}
--
Gitblit v1.9.3