|
@@ -49,6 +49,11 @@ export default {
|
|
this.initMqtt({
|
|
this.initMqtt({
|
|
mqttResponse: this.mqttResponse
|
|
mqttResponse: this.mqttResponse
|
|
})
|
|
})
|
|
|
|
+ document.addEventListener('visibilitychange', () => {
|
|
|
|
+ if (document.visibilityState === 'visible') {
|
|
|
|
+ window.location.reload()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
reload() {
|
|
reload() {
|
|
getTransList().then((resp) => {
|
|
getTransList().then((resp) => {
|