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() {

{{ purpose === "pool" ? "添加账号" : "DecomEval" }}

+
这个数据库已经安装过,请使用原来的管理员账号登录。 {{ errorText }}
- + - +
-
- 登录 - + + {{ mode === "local" || captchaUrl ? "登录" : "继续" }} +
diff --git a/web/src/features/install/InstallView.vue b/web/src/features/install/InstallView.vue index 6be1a0f..ac7b120 100644 --- a/web/src/features/install/InstallView.vue +++ b/web/src/features/install/InstallView.vue @@ -87,7 +87,7 @@ async function submit() { - 完成安装 + 完成安装 diff --git a/web/src/styles.css b/web/src/styles.css index f3659e9..7896209 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -99,13 +99,19 @@ button, input, select { font: inherit; } padding: 28px 28px 22px; } .gate-card.wide { width: min(560px, 100%); } -.install-submit.n-button { +.gate-submit.n-button { width: 100%; height: 40px; margin-top: 24px; font-weight: 600; letter-spacing: 0.12em; } +.login-secondary { + display: flex; + justify-content: flex-end; + margin-top: 16px; +} +.login-secondary + .gate-submit.n-button { margin-top: 12px; } .gate-brand { display: flex; gap: 14px;