fix: 清零同步更新screen数据
This commit is contained in:
parent
a12e229d41
commit
9221e203d0
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue