chore: btn animate with try catch

This commit is contained in:
Zephyruso 2023-09-04 18:02:36 +08:00
parent a17be36d92
commit 1729329c58

View File

@ -18,7 +18,9 @@ export const handlerBtnClickWithAnimate = async (
}
el.classList.add(className)
await cb()
try {
await cb()
} catch {}
el.classList.remove(className)
}