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) }