From 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 21 Apr 2025 18:29:09 +0800
Subject: [PATCH] fix: 天气显示
---
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