调整默认登录信息

This commit is contained in:
fuenmao
2026-09-20 14:12:49 +08:00
parent 30ac8b51b5
commit 54ac8369b5
@@ -2,7 +2,8 @@
<template> <template>
<el-form ref="loginFormRef" :model="loginForm" :rules="loginRules" size="large"> <el-form ref="loginFormRef" :model="loginForm" :rules="loginRules" size="large">
<s-form-item v-if="tenantOption == TenantEnum.CHOSE" prop="orgId" class="-ml-12px"> <s-form-item v-if="tenantOption == TenantEnum.CHOSE" prop="orgId" class="-ml-12px">
<s-select v-model="loginForm.tenantId" :options="tenantOptions" label="name" value="id" placeholder="请选择租户"></s-select> <s-select v-model="loginForm.tenantId" :options="tenantOptions" label="name" value="id"
placeholder="请选择租户"></s-select>
</s-form-item> </s-form-item>
<el-form-item prop="account"> <el-form-item prop="account">
<el-input v-model="loginForm.account" placeholder="请输入用户名"> <el-input v-model="loginForm.account" placeholder="请输入用户名">
@@ -14,7 +15,8 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="password"> <el-form-item prop="password">
<el-input v-model="loginForm.password" type="password" placeholder="请输入密码" show-password autocomplete="new-password"> <el-input v-model="loginForm.password" type="password" placeholder="请输入密码" show-password
autocomplete="new-password">
<template #prefix> <template #prefix>
<el-icon class="el-input__icon"> <el-icon class="el-input__icon">
<lock /> <lock />
@@ -38,7 +40,8 @@
</el-form> </el-form>
<div class="login-btn"> <div class="login-btn">
<el-button :icon="CircleClose" round size="large" @click="resetForm(loginFormRef)"> 重置 </el-button> <el-button :icon="CircleClose" round size="large" @click="resetForm(loginFormRef)"> 重置 </el-button>
<el-button :icon="UserFilled" round size="large" type="primary" :loading="auth.loginLoading" @click="handleSubmit(loginFormRef)"> <el-button :icon="UserFilled" round size="large" type="primary" :loading="auth.loginLoading"
@click="handleSubmit(loginFormRef)">
登录 登录
</el-button> </el-button>
</div> </div>
@@ -90,8 +93,8 @@ watch(
const loginFormRef = ref<FormInstance>(); // 表单实例 const loginFormRef = ref<FormInstance>(); // 表单实例
// 表单数据 // 表单数据
const loginForm = reactive<Login.LoginForm>({ const loginForm = reactive<Login.LoginForm>({
account: "superAdmin", //用户名 account: "", //用户名
password: "123456", // 密码 password: "", // 密码
validCode: "", // 验证码 validCode: "", // 验证码
validCodeReqNo: "", // 验证码请求号 validCodeReqNo: "", // 验证码请求号
tenantId: config.tenantIdGet tenantId: config.tenantIdGet