fix: 账号池添加账号复用登录表单,不再套一层卡片

This commit is contained in:
2026-10-30 11:33:42 +08:00
parent 3c5844bbe9
commit 564968472d
3 changed files with 27 additions and 14 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ onMounted(load);
<p v-else class="admin-status">没有账号</p>
</div>
</section>
<n-modal v-model:show="show" preset="card" title="添加账号" style="width: 520px">
<n-modal v-model:show="show" preset="card" title="添加账号" :style="{ width: 'min(440px, calc(100vw - 32px))' }">
<LoginView purpose="pool" @done="show = false; load()" />
</n-modal>
</Shell>
+4 -4
View File
@@ -196,9 +196,9 @@ async function finishNqi() {
<template>
<div :class="purpose === 'pool' ? '' : 'gate'">
<ThemeButton v-if="purpose !== 'pool'" />
<section class="lv-side">
<div class="lv-brand"><div class="lv-mark" aria-hidden="true">D</div><h1>{{ purpose === "pool" ? "添加账号" : "DecomEval" }}</h1></div>
<form @submit.prevent="submitLogin">
<section :class="purpose === 'pool' ? 'lv-embed' : 'lv-side'">
<div v-if="purpose !== 'pool'" class="lv-brand"><div class="lv-mark" aria-hidden="true">D</div><h1>DecomEval</h1></div>
<form class="lv-fields" @submit.prevent="submitLogin">
<n-alert v-if="route.query.notice === 'already'" type="info">这个数据库已经安装过,请使用原来的管理员账号登录。</n-alert>
<n-alert v-if="errorText" type="error">{{ errorText }}</n-alert>
<label>账号</label>
@@ -212,7 +212,7 @@ async function finishNqi() {
<img v-if="captchaUrl" :src="captchaUrl" alt="验证码" title="点击刷新" @click="refreshCaptcha" />
</div>
</template>
<n-button class="lv-go" type="primary" attr-type="submit" :loading="busy">登录</n-button>
<n-button class="lv-go" type="primary" attr-type="submit" :loading="busy">{{ purpose === "pool" ? "添加" : "登录" }}</n-button>
</form>
</section>
<n-modal v-model:show="smsRequired" :mask-closable="false" preset="card" title="短信认证" style="width: 420px">