From e1699c4851f6ca397cd0ad1ff63f32c737654836 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 02 Apr 2025 19:14:54 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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