定时更新detail数据

This commit is contained in:
fxxian 2024-04-08 17:03:08 +08:00
parent 2d46369bf7
commit 64b03f9a67
1 changed files with 5 additions and 0 deletions

View File

@ -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 => {