diff --git a/src/views/counter/detail.vue b/src/views/counter/detail.vue index 2bf8122..419e0f4 100644 --- a/src/views/counter/detail.vue +++ b/src/views/counter/detail.vue @@ -200,6 +200,11 @@ export default { } } }, + mounted() { + this.timer = setInterval(() => { + this.getDevices({ device_id: this.device_id }) + }, 5000) + }, methods: { getDeviceLogsHistory(params) { fetchDeviceLogsHistory(params).then(response => {