Change interval time

This commit is contained in:
2021-08-18 19:25:27 +02:00
parent 7fa7cc8cae
commit 2552103166

View File

@@ -44,7 +44,7 @@ export default defineComponent({
document.getElementById(new_color.name)!.classList.toggle(new_color.color)
setTimeout(() => document.getElementById(color.name)!.classList.toggle(color.color), 0)
CURRENT === COLORS.length - 1 ? CURRENT = 0 : CURRENT++
}, 3000)
}, 2000)
})
onUnmounted(() => clearInterval(task))