소스 검색

bug修复

凉纪 1 년 전
부모
커밋
feadfec59e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/views/menu/securityCheckRegister/add.vue

+ 4 - 0
src/views/menu/securityCheckRegister/add.vue

@@ -235,11 +235,15 @@ export default {
   beforeDestroy() {
     window.openCameraCallBack = null;
     window.openNFCScanCallBack = null;
+    this.$toast.clear();
+    clearInterval(this.timer);
   },
   methods: {
     onClose(){
       window.openCameraCallBack = null;
       window.openNFCScanCallBack = null;
+      this.$toast.clear();
+      clearInterval(this.timer);
     },
     //长度校验
     validator(val) {