feat: 前端支持平台子路径,托管时从平台登录进入

This commit is contained in:
2026-11-03 12:30:24 +08:00
parent c38e649904
commit 5d4b86c558
17 changed files with 271 additions and 53 deletions
+6 -4
View File
@@ -3,7 +3,7 @@ import { onMounted, ref } from "vue";
import { useRouter } from "vue-router";
import { NButton, NInput } from "naive-ui";
import { api } from "../../shared/http";
import { markInstalled } from "../../shared/installState";
import { hosted, markInstalled } from "../../shared/installState";
import { useToast } from "../../shared/toast";
import ThemeButton from "../../shell/ThemeButton.vue";
@@ -76,9 +76,11 @@ async function submit() {
<div class="form-row"><label>数据库名</label><n-input v-model:value="database" /></div>
<div class="form-row"><label>用户</label><n-input v-model:value="username" /></div>
<div class="form-row"><label>密码</label><n-input v-model:value="password" type="password" show-password-on="click" /></div>
<p class="form-section">管理员</p>
<div class="form-row"><label>账号</label><n-input v-model:value="adminUsername" /></div>
<div class="form-row"><label>密码</label><n-input v-model:value="adminPassword" type="password" show-password-on="click" /></div>
<template v-if="!hosted">
<p class="form-section">管理员</p>
<div class="form-row"><label>账号</label><n-input v-model:value="adminUsername" /></div>
<div class="form-row"><label>密码</label><n-input v-model:value="adminPassword" type="password" show-password-on="click" /></div>
</template>
<n-button class="gate-submit" type="primary" :loading="busy" @click="submit">完成安装</n-button>
</section>
</div>