fix: 增加loading

This commit is contained in:
Xu Zhimeng 2024-01-05 13:59:48 +08:00
parent 25792a7c06
commit 0c8089063f

View File

@ -312,6 +312,7 @@ export default {
start: this.queryParams.startDate,
end: this.queryParams.endDate,
}
const hide = this.$message.loading('loading...', 0)
getAction('/systemMonitor/queryHostDetails', params).then((res) => {
this.list = res.result
this.listData = {
@ -373,6 +374,8 @@ export default {
this.drawRanked()
this.drawProcesCpu()
this.drawProcesMenbry()
}).finally(() => {
hide()
})
},
getBeforeHours(num) {