LiuTeng 10 月之前
父節點
當前提交
9ac39a7cb9
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/report/components/brushCard.vue

+ 4 - 1
src/views/report/components/brushCard.vue

@@ -56,7 +56,8 @@ export default {
   mounted() {
     this.$emit("update:timerTime", 60);
     this.init = true;
-    let cardReader = this.$route.query.cardReader;
+    let cardReader =
+      this.$route.query.cardReader || this.$route.query.cardreader;
     if (cardReader && cardReader == "hd") {
       this.readHdReader();
     } else {
@@ -204,6 +205,8 @@ export default {
       });
     },
     home() {
+      clearInterval(this.timer);
+      this.timer = null;
       this.$emit("update:timerTime", -1);
       this.$emit("update:nowPage", {
         page: "index",