Browse Source

fix: 图表只显示在线的

master
guoapeng 1 week ago
parent
commit
f338763ffc
  1. 4
      src/views/home/chart.vue

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

Loading…
Cancel
Save