mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	reset the heartbeat list instead of reload the page after cleared events or heartbeats
This commit is contained in:
		@@ -107,8 +107,8 @@ export default {
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        socket.on("heartbeatList", (monitorID, data) => {
 | 
			
		||||
            if (! (monitorID in this.heartbeatList)) {
 | 
			
		||||
        socket.on("heartbeatList", (monitorID, data, overwrite = false) => {
 | 
			
		||||
            if (! (monitorID in this.heartbeatList) || overwrite) {
 | 
			
		||||
                this.heartbeatList[monitorID] = data;
 | 
			
		||||
            } else {
 | 
			
		||||
                this.heartbeatList[monitorID] = data.concat(this.heartbeatList[monitorID])
 | 
			
		||||
@@ -127,8 +127,8 @@ export default {
 | 
			
		||||
            this.certInfoList[monitorID] = JSON.parse(data)
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        socket.on("importantHeartbeatList", (monitorID, data) => {
 | 
			
		||||
            if (! (monitorID in this.importantHeartbeatList)) {
 | 
			
		||||
        socket.on("importantHeartbeatList", (monitorID, data, overwrite) => {
 | 
			
		||||
            if (! (monitorID in this.importantHeartbeatList) || overwrite) {
 | 
			
		||||
                this.importantHeartbeatList[monitorID] = data;
 | 
			
		||||
            } else {
 | 
			
		||||
                this.importantHeartbeatList[monitorID] = data.concat(this.importantHeartbeatList[monitorID])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user