From 4fd6b213299c1adb0689302d9e34842e06511365 Mon Sep 17 00:00:00 2001 From: yiming Date: Thu, 28 Apr 2022 16:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=98=E7=82=B9=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/checkManage/Subsection.vue | 6 +++++- src/views/checkManage/index.vue | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) 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(); },