|
|
@ -182,6 +182,7 @@ export default {
|
|
|
|
// Also toast
|
|
|
|
// Also toast
|
|
|
|
if (data.important) {
|
|
|
|
if (data.important) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.monitorList[data.monitorID] !== undefined) {
|
|
|
|
if (data.status === 0) {
|
|
|
|
if (data.status === 0) {
|
|
|
|
toast.error(`[${this.monitorList[data.monitorID].name}] [DOWN] ${data.msg}`, {
|
|
|
|
toast.error(`[${this.monitorList[data.monitorID].name}] [DOWN] ${data.msg}`, {
|
|
|
|
timeout: false,
|
|
|
|
timeout: false,
|
|
|
@ -193,6 +194,7 @@ export default {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
toast(`[${this.monitorList[data.monitorID].name}] ${data.msg}`);
|
|
|
|
toast(`[${this.monitorList[data.monitorID].name}] ${data.msg}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (! (data.monitorID in this.importantHeartbeatList)) {
|
|
|
|
if (! (data.monitorID in this.importantHeartbeatList)) {
|
|
|
|
this.importantHeartbeatList[data.monitorID] = [];
|
|
|
|
this.importantHeartbeatList[data.monitorID] = [];
|
|
|
|