This commit is contained in:
qiangyanwen 2022-12-13 16:49:38 +08:00
parent e355631026
commit 9528d55ba4
1 changed files with 1 additions and 33 deletions

View File

@ -141,6 +141,7 @@ function GetSytem(){
sysparams.current_time = current_time sysparams.current_time = current_time
let data_array = reactive([]) let data_array = reactive([])
sysparams.start_time = start_time sysparams.start_time = start_time
//disk
data.disk_info.map((par, index) => { data.disk_info.map((par, index) => {
let params = { let params = {
key: String(index), 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)
// }
//
//
// })
// })
// }
</script> </script>