|
@ -127,7 +127,7 @@ const getData = async (type?: string) => { |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
const list = data.rely |
|
|
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++) { |
|
|
for (let i = 0; i < list.length; i++) { |
|
|
const item: any = list[i] |
|
|
const item: any = list[i] |
|
|
const res = await syncSendCmd({ |
|
|
const res = await syncSendCmd({ |
|
@ -141,7 +141,7 @@ const getData = async (type?: string) => { |
|
|
}) |
|
|
}) |
|
|
item.data = res.rely |
|
|
item.data = res.rely |
|
|
} |
|
|
} |
|
|
chartList.value = list |
|
|
|
|
|
|
|
|
chartList.value = list.filter(item => item.online) |
|
|
console.log(chartList.value) |
|
|
console.log(chartList.value) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|