This commit is contained in:
2026-08-13 12:22:39 +08:00
parent f12cdcaa71
commit 5fc327a14d
3 changed files with 16 additions and 1 deletions
+8
View File
@@ -17,6 +17,7 @@ const router = useRouter()
const auth = useAuthStore()
const formRef = ref<FormInstance>()
const loading = ref(false)
const impersonationFailed = route.query.impersonation === 'failed'
const form = reactive<LoginForm>({
account: typeof route.query.account === 'string'
? route.query.account
@@ -77,6 +78,13 @@ function showResetHint() {
<h2 id="login-title">登录客户工作台</h2>
<p>使用企业账号登录,继续管理您的跨境物流业务。</p>
</div>
<el-alert
v-if="impersonationFailed"
title="代登录失败或授权已失效,请返回管理后台重新发起"
type="error"
:closable="false"
show-icon
/>
<div class="auth-account-note">企业注册成功后即可登录;提交订单前需完成企业资料审核。</div>
<el-form ref="formRef" :model="form" :rules="rules" label-position="top" size="large" @submit.prevent="submit">
<el-form-item label="用户名" prop="account">