优化监控模式定时循环销毁

dev
xuechunyuan 3 years ago
parent a5830cddee
commit 676c291af4
  1. 6
      src/components/monitoring/conditioner.vue
  2. 2
      src/components/monitoring/light.vue
  3. 1
      src/components/monitoring/monitoring.vue
  4. 1
      src/views/garden/generalizePattern.vue

@ -535,6 +535,12 @@ export default {
},
},
},
beforeDestroy() {
console.log('销毁interval')
if (this.setInterval) {
clearInterval(this.setInterval);
}
},
created() {
this.getConditions(); //
this.getAirWarnList();//

@ -456,7 +456,7 @@ export default {
mounted() {
this.getNavigationMap();
},
destroyed() {
beforeDestroy() {
if (this.setInterval) {
clearInterval(this.setInterval);
}

@ -327,6 +327,7 @@ export default {
}, 3600000);
},
beforeDestroy() {
console.log('销毁interval')
if (this.setInterval) {
clearInterval(this.setInterval);
}

@ -710,6 +710,7 @@ export default {
},
},
beforeDestroy() {
console.log('销毁interval')
if (this.setInterval) {
clearInterval(this.setInterval);
}

Loading…
Cancel
Save