From 58071810d91803509e6ad7517758ff79db68ffab Mon Sep 17 00:00:00 2001
From: dap <15891557205@163.com>
Date: Tue, 13 Jan 2026 21:32:55 +0800
Subject: [PATCH] =?UTF-8?q?refactor(redis-description):=20=E9=87=8D?=
=?UTF-8?q?=E6=9E=84=20Redis=20=E6=8F=8F=E8=BF=B0=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=E4=BD=BF=E7=94=A8=20computed=20=E5=B1=9E=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
使用 computed 属性动态生成 Descriptions 的 items 配置,提升代码可维护性
移除模板中的硬编码,使数据结构更清晰
---
.../cache/components/redis-description.vue | 110 +++++++++++-------
1 file changed, 66 insertions(+), 44 deletions(-)
diff --git a/apps/web-antd/src/views/monitor/cache/components/redis-description.vue b/apps/web-antd/src/views/monitor/cache/components/redis-description.vue
index 00aaea4f..a06a26c7 100644
--- a/apps/web-antd/src/views/monitor/cache/components/redis-description.vue
+++ b/apps/web-antd/src/views/monitor/cache/components/redis-description.vue
@@ -1,58 +1,80 @@
-
-
- {{ data.redis_version }}
-
-
- {{ data.redis_mode === 'standalone' ? '单机模式' : '集群模式' }}
-
-
- {{ data.tcp_port }}
-
-
- {{ data.connected_clients }}
-
-
- {{ data.uptime_in_days }} 天
-
-
- {{ data.used_memory_human }}
-
-
- {{ Number.parseFloat(data?.used_cpu_user_children ?? '0').toFixed(2) }}
-
-
- {{ data.maxmemory_human }}
-
-
- {{ data.aof_enabled === '0' ? '否' : '是' }}
-
-
- {{ data.rdb_last_bgsave_status }}
-
-
- {{ data.dbSize }}
-
-
- {{
- `${data.instantaneous_input_kbps}kps/${data.instantaneous_output_kbps}kps`
- }}
-
-
+ />