diff --git a/src/views/checkManage/Subsection.vue b/src/views/checkManage/Subsection.vue index 53fa68c..e8782e1 100644 --- a/src/views/checkManage/Subsection.vue +++ b/src/views/checkManage/Subsection.vue @@ -163,6 +163,9 @@ export default { this.$nextTick(() => { this.getStatus(); }) + this.$on('hook:activated', () => { + this.timer = window.setInterval(this.getStatus, 3000); + }) this.timer = window.setInterval(this.getStatus, 3000); this.$on('hook:deactivated', () => { @@ -180,7 +183,8 @@ export default { }, destroyed() { - clearInterval(this.timer); + window.clearInterval(this.timer); + this.timer = null; }, methods: { diff --git a/src/views/checkManage/index.vue b/src/views/checkManage/index.vue index 004f71e..df98f0c 100644 --- a/src/views/checkManage/index.vue +++ b/src/views/checkManage/index.vue @@ -206,8 +206,6 @@ export default { this.select = value this.getStreetDetail(value) - //this.getStockList(value); - //this.getStockRowColumn() this.leftShelveChange(); this.rightShelveChange(); },