修复盘点页面不刷新的问题

taiwan-tingli
yiming 4 years ago
parent 0af7ffa8e8
commit 4fd6b21329

@ -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: {

@ -206,8 +206,6 @@ export default {
this.select = value this.select = value
this.getStreetDetail(value) this.getStreetDetail(value)
//this.getStockList(value);
//this.getStockRowColumn()
this.leftShelveChange(); this.leftShelveChange();
this.rightShelveChange(); this.rightShelveChange();
}, },

Loading…
Cancel
Save