fix: 移除后台登录默认凭据

This commit is contained in:
2026-07-09 16:45:09 +08:00
parent 55333445f4
commit ef24868105
5 changed files with 53 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ const admin = ref<AdminProfile | null>(null);
const activeMenu = ref("dashboard");
const loading = ref(false);
const loginForm = reactive({ username: "admin", password: "admin123456" });
const loginForm = reactive({ username: "", password: "" });
const stats = ref<DashboardStats | null>(null);
const dashboardFilters = reactive({
start: "",
@@ -1068,9 +1068,9 @@ function formatRecordDateTime(value: string, boundary: "start" | "end") {
<h2>登录答疑后台</h2>
<p>请输入大本营答疑助手后台管理员账号和密码</p>
</div>
<el-form label-position="top" @submit.prevent="login">
<el-form label-position="top" autocomplete="off" @submit.prevent="login">
<el-form-item label="管理员账号">
<el-input v-model="loginForm.username" size="large" placeholder="请输入管理员账号" />
<el-input v-model="loginForm.username" size="large" placeholder="请输入管理员账号" autocomplete="off" />
</el-form-item>
<el-form-item label="密码">
<el-input
@@ -1078,6 +1078,7 @@ function formatRecordDateTime(value: string, boundary: "start" | "end") {
size="large"
type="password"
placeholder="请输入密码"
autocomplete="new-password"
show-password
/>
</el-form-item>