From f094ac4d39695bb7baa014d8e2f49cc6e4954d34 Mon Sep 17 00:00:00 2001 From: Shikong <919411476@qq.com> Date: Mon, 17 Jul 2023 23:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/components/system/cpu/CPUUsageChart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/wails/frontend/src/components/system/cpu/CPUUsageChart.vue b/app/wails/frontend/src/components/system/cpu/CPUUsageChart.vue index 8b2fe49..226e8f3 100644 --- a/app/wails/frontend/src/components/system/cpu/CPUUsageChart.vue +++ b/app/wails/frontend/src/components/system/cpu/CPUUsageChart.vue @@ -24,7 +24,7 @@ const props = defineProps({ }, maxStep:{ type: Number, - default: 120 + default: 600 } }) const cpuUsage = useCpuUsage() @@ -115,7 +115,7 @@ onMounted(()=>{ value: [moment().format("HH:mm:ss"), v] }) if(data.length > props.maxStep){ - data.splice(1,1) + data.splice(0,1) } chartInst.setOption(chart) })