1. 调整驾驶舱-风场-升压站 定时器未清除的问题. 导致切换场站后数据接口依然在请求
@@ -4504,6 +4504,9 @@ export default {
this.refreshTPData();
this.interval = setInterval(this.refreshTPData, 1000);
},
+ beforeUnmount(){
+ this.closed()
+ },
methods: {
// 获取组件属性
getAttr(id) {
@@ -2124,6 +2124,9 @@
mounted() {
this.$nextTick(() => {
if (this.$store.state.themeName === "light") {
@@ -1468,6 +1468,9 @@
this.refreshTPData()
this.interval = setInterval(this.refreshTPData, 3000)
@@ -2772,6 +2772,9 @@
@@ -3398,6 +3398,9 @@
@@ -5422,6 +5422,9 @@
@@ -1864,6 +1864,9 @@
@@ -3513,6 +3513,9 @@
@@ -2657,6 +2657,9 @@
@@ -1857,6 +1857,9 @@
@@ -5228,6 +5228,9 @@
@@ -4317,6 +4317,9 @@
@@ -3914,6 +3914,9 @@