瀏覽代碼

Merge remote-tracking branch 'origin/master' into dev

GouGengquan 4 月之前
父節點
當前提交
57516fc4e8
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      src/views/assets/workbench/eqpt/calculate/importInfo.vue

+ 15 - 0
src/views/assets/workbench/eqpt/calculate/importInfo.vue

@@ -1276,6 +1276,21 @@ export default {
     this.getEqptDataPage()
     this.getPPI()
   },
+  beforeUnmount () {
+      // 清除定时器
+      if (this.autoSaveTimer) {
+        clearInterval(this.autoSaveTimer);
+        this.autoSaveTimer = null;
+      }
+      if (this.autoSaveImpTimer) {
+        clearInterval(this.autoSaveImpTimer);
+        this.autoSaveImpTimer = null;
+      }
+      if (this.autoSaveNonSTimer) {
+        clearInterval(this.autoSaveNonSTimer);
+        this.autoSaveNonSTimer = null;
+      }
+  },
   methods: {
     startAutoSave() {
       if (this.autoSaveAtive) {