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();