openatc-components 0.4.45 → 0.4.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -836,14 +836,17 @@ export default {
836
836
  }
837
837
  }, 1000)
838
838
  }
839
+ },
840
+ handleClearInterval () {
841
+ this.isResend = false
842
+ this.clearPatternInterval() // 清除定时器
843
+ this.clearVolumeInterval()
844
+ this.clearDetectorStatusTimer()
845
+ this.clearRegisterMessageTimer() // 清除定时器
839
846
  }
840
847
  },
841
848
  destroyed () {
842
- this.isResend = false
843
- this.clearPatternInterval() // 清除定时器
844
- this.clearVolumeInterval()
845
- this.clearDetectorStatusTimer()
846
- this.clearRegisterMessageTimer() // 清除定时器
849
+ this.handleClearInterval()
847
850
  this.getPlatform()
848
851
  }
849
852
  }