feat: 前端支持平台子路径,托管时从平台登录进入
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user