소스 검색

清理定时器,避免死循环

shaogen1995 1 년 전
부모
커밋
688a79e22e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)