mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
[Favicon] minor
This commit is contained in:
parent
a9efdabcec
commit
c68f7944e3
1 changed files with 4 additions and 3 deletions
|
@ -446,8 +446,11 @@ export default {
|
||||||
if (! this.editMode) {
|
if (! this.editMode) {
|
||||||
axios.get("/api/status-page/heartbeat").then((res) => {
|
axios.get("/api/status-page/heartbeat").then((res) => {
|
||||||
const { heartbeatList, uptimeList } = res.data;
|
const { heartbeatList, uptimeList } = res.data;
|
||||||
const heartbeatIds = Object.keys(heartbeatList);
|
|
||||||
|
|
||||||
|
this.$root.heartbeatList = heartbeatList;
|
||||||
|
this.$root.uptimeList = uptimeList;
|
||||||
|
|
||||||
|
const heartbeatIds = Object.keys(heartbeatList);
|
||||||
const downMonitors = heartbeatIds.reduce((downMonitorsAmount, currentId) => {
|
const downMonitors = heartbeatIds.reduce((downMonitorsAmount, currentId) => {
|
||||||
const monitorHeartbeats = heartbeatList[currentId];
|
const monitorHeartbeats = heartbeatList[currentId];
|
||||||
const lastHeartbeat = monitorHeartbeats.at(-1);
|
const lastHeartbeat = monitorHeartbeats.at(-1);
|
||||||
|
@ -461,8 +464,6 @@ export default {
|
||||||
|
|
||||||
favicon.badge(downMonitors);
|
favicon.badge(downMonitors);
|
||||||
|
|
||||||
this.$root.heartbeatList = heartbeatList;
|
|
||||||
this.$root.uptimeList = uptimeList;
|
|
||||||
this.loadedData = true;
|
this.loadedData = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue