|
|
@ -230,8 +230,11 @@ export default {
|
|
|
|
this.$watch(() => this.$root.heartbeatList[this.monitorId],
|
|
|
|
this.$watch(() => this.$root.heartbeatList[this.monitorId],
|
|
|
|
(heartbeatList) => {
|
|
|
|
(heartbeatList) => {
|
|
|
|
if (this.chartPeriodHrs != 0) {
|
|
|
|
if (this.chartPeriodHrs != 0) {
|
|
|
|
|
|
|
|
const newBeat = heartbeatList.at(-1);
|
|
|
|
|
|
|
|
if (newBeat && dayjs.utc(newBeat.time) > dayjs.utc(this.heartbeatList.at(-1)?.time)) {
|
|
|
|
this.heartbeatList.push(heartbeatList.at(-1));
|
|
|
|
this.heartbeatList.push(heartbeatList.at(-1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{ deep: true }
|
|
|
|
{ deep: true }
|
|
|
|
);
|
|
|
|
);
|
|
|
|