|
|
|
@ -163,6 +163,9 @@ export default {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.getStatus();
|
|
|
|
this.getStatus();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$on('hook:activated', () => {
|
|
|
|
|
|
|
|
this.timer = window.setInterval(this.getStatus, 3000);
|
|
|
|
|
|
|
|
})
|
|
|
|
this.timer = window.setInterval(this.getStatus, 3000);
|
|
|
|
this.timer = window.setInterval(this.getStatus, 3000);
|
|
|
|
|
|
|
|
|
|
|
|
this.$on('hook:deactivated', () => {
|
|
|
|
this.$on('hook:deactivated', () => {
|
|
|
|
@ -180,7 +183,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
destroyed() {
|
|
|
|
destroyed() {
|
|
|
|
clearInterval(this.timer);
|
|
|
|
window.clearInterval(this.timer);
|
|
|
|
|
|
|
|
this.timer = null;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|