diff --git a/web/src/features/auth/LoginView.vue b/web/src/features/auth/LoginView.vue index 5b64103..4709b35 100644 --- a/web/src/features/auth/LoginView.vue +++ b/web/src/features/auth/LoginView.vue @@ -29,6 +29,19 @@ onMounted(async () => { mode.value = result.mode; }); +function submitLogin() { + if (busy.value) return; + if (mode.value === "local") { + enterLocal(); + return; + } + if (!captchaUrl.value) { + startNqi(); + return; + } + finishNqi(); +} + function fail(error: unknown) { errorText.value = error instanceof Error ? error.message : "登录失败"; } @@ -138,33 +151,31 @@ async function finishNqi() {