diff --git a/frontend/src/pages/monitor/[hostname].vue b/frontend/src/pages/monitor/[hostname].vue index 7128147..7e8311a 100644 --- a/frontend/src/pages/monitor/[hostname].vue +++ b/frontend/src/pages/monitor/[hostname].vue @@ -34,6 +34,12 @@ export default { window.scrollTo(0, document.body.scrollHeight); }, 100); }; + this.socket.onclose = (event) => { + // reconnect after 1s + setTimeout(() => { + this.fetchData(); + }, 1000); + } }, }, };