mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-22 14:42:51 +08:00
[status page] many update and save group list
This commit is contained in:
@@ -11,12 +11,14 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
publicGroupList: [],
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
publicMonitorList() {
|
||||
let result = {};
|
||||
|
||||
console.log(this.publicGroupList);
|
||||
|
||||
for (let group of this.publicGroupList) {
|
||||
for (let monitor of group.monitorList) {
|
||||
result[monitor.id] = monitor;
|
||||
@@ -26,7 +28,7 @@ export default {
|
||||
},
|
||||
|
||||
publicLastHeartbeatList() {
|
||||
let result = {}
|
||||
let result = {};
|
||||
|
||||
for (let monitorID in this.publicMonitorList) {
|
||||
if (this.lastHeartbeatList[monitorID]) {
|
||||
@@ -37,4 +39,4 @@ export default {
|
||||
return result;
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user