Przeglądaj źródła

清理定时器,避免死循环

shaogen1995 1 rok temu
rodzic
commit
688a79e22e
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/components/PaintingDetailBox.vue

+ 1 - 0
src/components/PaintingDetailBox.vue

@@ -100,6 +100,7 @@ onMounted(() => {
           }
         }
       }, 600)
+      clearInterval(tiemrr.value)
       tiemrr.value = setInterval(() => {
         console.log('interval')
         if (zhouMove.value >= 99) clearInterval(tiemrr.value)