From 9057e04efad1b7d61c77a72e5c37a504d0aee935 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 26 九月 2025 09:24:03 +0800
Subject: [PATCH] H5静态化

---
 admin/src/views/system/monitor.vue |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/admin/src/views/system/monitor.vue b/admin/src/views/system/monitor.vue
index 3b94040..03fdf4b 100644
--- a/admin/src/views/system/monitor.vue
+++ b/admin/src/views/system/monitor.vue
@@ -181,19 +181,25 @@
     }
   },
   methods: {
-    // 鍒囨崲鑷姩鍒锋柊
-    changeAutoRefresh (value) {
+    /**
+     * 鍒囨崲鑷姩鍒锋柊
+     *
+     * @param autoRefresh 鏄惁鑷姩鍒锋柊
+     */
+    changeAutoRefresh (autoRefresh) {
       if (this.interval != null) {
         clearInterval(this.interval)
       }
-      if (value) {
+      if (autoRefresh) {
         this.getSystemInfo()
         this.interval = setInterval(() => {
           this.getSystemInfo()
         }, 3000)
       }
     },
-    // 鑾峰彇绯荤粺淇℃伅
+    /**
+     * 鑾峰彇绯荤粺淇℃伅
+     */
     getSystemInfo () {
       if (this.loading) {
         return
@@ -210,11 +216,21 @@
           this.loading = false
         })
     },
-    // 鍗曚綅杞负G
+    /**
+     * 鍗曚綅杞负G
+     *
+     * @param value 杞崲鍊�
+     * @returns {number}
+     */
     toG (value) {
       return Math.round(value / 1024 * 100) / 100
     },
-    // 杞负姣旂巼
+    /**
+     * 杞负姣旂巼
+     *
+     * @param value 杞崲鍊�
+     * @returns {number}
+     */
     keep2decimals (value) {
       return Math.round(value * 100) / 100
     }

--
Gitblit v1.9.3