From 05fdb1e87c60aa81dfbbed743806aac415db9ffc Mon Sep 17 00:00:00 2001 From: as6325400 Date: Fri, 30 Aug 2024 17:17:52 +0800 Subject: [PATCH] format --- src/components/pages/login/loginarea.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/pages/login/loginarea.vue b/src/components/pages/login/loginarea.vue index 3fca69d..5c5c56b 100644 --- a/src/components/pages/login/loginarea.vue +++ b/src/components/pages/login/loginarea.vue @@ -56,7 +56,11 @@ const focusNext = (event, index) => { }; const focusPre = (event, index) => { - if (event.key === "Backspace" && index > 0 && inputs.value[index] === "") { + if ( + event.key === "Backspace" && + index > 0 && + inputs.value[index] === "" + ) { inputs.value[index - 1] = ""; event.target.previousElementSibling.focus(); } @@ -64,7 +68,6 @@ const focusPre = (event, index) => { const apiSite = `${env.VITE_BACKEND_DEVICE}/`; - async function handleSubmit() { const code = inputs.value.join(""); const res = await axios.post(`${apiSite}login`, { otp: code });