This commit is contained in:
2025-12-19 22:23:16 +08:00
parent 064f67a2b9
commit 5ece041672
13 changed files with 106 additions and 97 deletions

View File

@@ -27,7 +27,7 @@ export default function Login() {
if (userStore.user) {
router.replace('/console')
}
}, [userStore])
}, [userStore, router])
return (
<>
@@ -41,7 +41,7 @@ export default function Login() {
e.preventDefault();
const formData = new FormData(e.currentTarget);
let handler = (await (async () => {
const handler = (await (async () => {
if (loginMode === 'password') {
return import('./components/PasswordLoginMode');
} else if (loginMode === 'sms') {