From 9528d55ba494c710ebf72cbdcb6511006aaceeb3 Mon Sep 17 00:00:00 2001 From: qiangyanwen <508737091@qq.com> Date: Tue, 13 Dec 2022 16:49:38 +0800 Subject: [PATCH] add test --- src/view/Monit.vue | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/src/view/Monit.vue b/src/view/Monit.vue index 2cdfb1e..11ad5f4 100644 --- a/src/view/Monit.vue +++ b/src/view/Monit.vue @@ -141,6 +141,7 @@ function GetSytem(){ sysparams.current_time = current_time let data_array = reactive([]) sysparams.start_time = start_time + //渲染disk磁盘信息 data.disk_info.map((par, index) => { let params = { key: String(index), @@ -158,39 +159,6 @@ function GetSytem(){ } - - -const QueryCpu = () => { - Cpu().then((rep) => { - let {cpu_percent} = rep.data - option.series.forEach((data) => { - data.data.forEach((key) => { - key.value = cpu_percent - }) - }) - console.log(rep.data) - - }) -} -// const QueryDisk = () => { -// disk().then((resp) => { -// resp.data.map((par, index) => { -// let params = { -// key: String(index), -// device: par.device, -// total: par.total, -// used: par.used, -// free: par.free, -// -// } -// if (index < 5) { -// data.push(params) -// } -// -// -// }) -// }) -// }