From f338763ffc8eba52626ddd9ab57244d30fb39d49 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Tue, 8 Jul 2025 20:53:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E8=A1=A8=E5=8F=AA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=9C=A8=E7=BA=BF=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/chart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/home/chart.vue b/src/views/home/chart.vue index c29351d..51fddd9 100644 --- a/src/views/home/chart.vue +++ b/src/views/home/chart.vue @@ -127,7 +127,7 @@ const getData = async (type?: string) => { }) const list = data.rely - !type && (chartList.value = list.map(item => ({ ...item, data: [] }))) + !type && (chartList.value = list.filter(item => item.online).map(item => ({ ...item, data: [] }))) for (let i = 0; i < list.length; i++) { const item: any = list[i] const res = await syncSendCmd({ @@ -141,7 +141,7 @@ const getData = async (type?: string) => { }) item.data = res.rely } - chartList.value = list + chartList.value = list.filter(item => item.online) console.log(chartList.value) }