From 5aa607744bc0ddfce78a0dced1aa5a47af3122e4 Mon Sep 17 00:00:00 2001 From: valarchie <343928303@qq.com> Date: Wed, 19 Jul 2023 23:10:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E4=BC=98=E5=8C=96=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E9=A1=B5=E9=9D=A2=E7=9A=84=E7=BC=96=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/cache/index.vue | 16 ++++++++-------- src/views/monitor/onlineUser/index.vue | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/views/monitor/cache/index.vue b/src/views/monitor/cache/index.vue index 213bb82..e7550f9 100644 --- a/src/views/monitor/cache/index.vue +++ b/src/views/monitor/cache/index.vue @@ -21,13 +21,13 @@ -
+
-
+
@@ -48,8 +48,8 @@ defineOptions({ const loading = ref(true); const cacheInfoTable = ref([]); -const commandstats = ref(null); -const usedmemory = ref(null); +const commandChartRef = ref(null); +const memoryChartRef = ref(null); async function getList() { loading.value = true; @@ -110,8 +110,8 @@ async function getList() { } ]; - const commandstatsIntance = echarts.init(commandstats.value, "macarons"); - commandstatsIntance.setOption({ + const commandChartInstance = echarts.init(commandChartRef.value, "macarons"); + commandChartInstance.setOption({ tooltip: { trigger: "item", formatter: "{a}
{b} : {c} ({d}%)" @@ -129,8 +129,8 @@ async function getList() { } ] }); - const usedmemoryInstance = echarts.init(usedmemory.value, "macarons"); - usedmemoryInstance.setOption({ + const memoryChartInstance = echarts.init(memoryChartRef.value, "macarons"); + memoryChartInstance.setOption({ tooltip: { formatter: `{b}
{a} : ${cacheInfo.info.used_memory_human}` }, diff --git a/src/views/monitor/onlineUser/index.vue b/src/views/monitor/onlineUser/index.vue index 6501dd6..914ccee 100644 --- a/src/views/monitor/onlineUser/index.vue +++ b/src/views/monitor/onlineUser/index.vue @@ -10,7 +10,7 @@ import Refresh from "@iconify-icons/ep/refresh"; /** 组件name最好和菜单表中的router_name一致 */ defineOptions({ - name: "SystemOperationLog" + name: "OnlineUser" }); const tableRef = ref();