凉纪 hai 1 ano
pai
achega
feadfec59e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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) {