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 { } else {
await this.sendRemoteControlCommand('countClear') await this.sendRemoteControlCommand('countClear')
} }
this.$emit('countClear')
}, },
async handleMosqClean() { async handleMosqClean() {
if (!this.dialogMosqVisible) { if (!this.dialogMosqVisible) {

View File

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