From c68f7944e33b2000f436a8f7937e116fa241553a Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 12 Mar 2022 15:31:01 +0800 Subject: [PATCH] [Favicon] minor --- src/pages/StatusPage.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/StatusPage.vue b/src/pages/StatusPage.vue index bcde1d3d1..fab3ec890 100644 --- a/src/pages/StatusPage.vue +++ b/src/pages/StatusPage.vue @@ -446,8 +446,11 @@ export default { if (! this.editMode) { axios.get("/api/status-page/heartbeat").then((res) => { 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 monitorHeartbeats = heartbeatList[currentId]; const lastHeartbeat = monitorHeartbeats.at(-1); @@ -461,8 +464,6 @@ export default { favicon.badge(downMonitors); - this.$root.heartbeatList = heartbeatList; - this.$root.uptimeList = uptimeList; this.loadedData = true; }); }