diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index bb41d50..798c74d 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -185,6 +185,8 @@ export default { handler:function(val,oldVal) { if (val.name!=="station-operation") { this.$message.destroy() + clearInterval(this.timer); + this.timer = null } }, deep:true, @@ -233,7 +235,7 @@ export default { this.getStationTypeList() this.getStationTree() }, - destroyed () { + beforeDestroy () { clearInterval(this.timer); this.timer = null },