Explorar o código

🐛 画轴底部bottom变负数

shaogen1995 hai 1 ano
pai
achega
ecab6e9d5d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/components/PaintingDetailBox.vue

+ 3 - 0
src/components/PaintingDetailBox.vue

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