Refactor loading value assignment in handleSubmit function
This commit is contained in:
parent
e4dc910865
commit
34206c66fd
|
@ -36,9 +36,7 @@ async function handleSubmit({
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
} finally {
|
} finally {
|
||||||
setTimeout(() => {
|
|
||||||
loading.value = false
|
loading.value = false
|
||||||
}, 1000)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user