fix: 清零同步更新screen数据

This commit is contained in:
fxxian 2024-04-08 00:03:47 +08:00
parent a12e229d41
commit 9221e203d0
2 changed files with 5 additions and 0 deletions

View File

@ -145,6 +145,7 @@ export default {
} else {
await this.sendRemoteControlCommand('countClear')
}
this.$emit('countClear')
},
async handleMosqClean() {
if (!this.dialogMosqVisible) {

View File

@ -6,6 +6,7 @@
<screen
:deviceID="this.$store.getters.deviceID"
:lastItem="lastItem"
@countClear="countClear"
v-if="flag"
>
</screen>
@ -214,6 +215,9 @@ export default {
this.listLoading = false
})
},
countClear() {
this.getDevices({ device_id: this.device_id })
},
// getDeviceLogsTableHistory(params) {
// fetchDeviceLogsHistory(params).then(response => {
// this.deviceLogs = response.data.results