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

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

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

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

Loading…
Cancel
Save