修复bug

This commit is contained in:
2026-07-31 15:34:35 +08:00
parent d0f94d95d7
commit b53fe81999
41 changed files with 362 additions and 3106 deletions
+4 -7
View File
@@ -4,6 +4,7 @@ import { useRoute, useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
import { ArrowRight, LockKeyhole, ShieldCheck, UserRound } from '@lucide/vue'
import { getApiErrorDetails, type ApiErrorDetails } from '@/api/http'
import baiyueLogoWhite from '@/assets/brand/baiyue-logo-white.png'
import ApiErrorMeta from '@/components/ApiErrorMeta.vue'
import { sanitizeInternalPath } from '@/router/accessDecision'
import { useAccessPreviewStore } from '@/stores/accessPreview'
@@ -15,11 +16,9 @@ const auth = useAuthStore()
const access = useAccessPreviewStore()
const loading = ref(false)
const loginError = ref<ApiErrorDetails | null>(null)
const isDevelopment = import.meta.env.DEV
const developmentHint = isDevelopment ? '当前为前端开发环境,可使用预填账号进入。' : ''
const form = reactive({
account: isDevelopment ? 'platform_admin' : '',
password: isDevelopment ? 'ChangeMe123!' : '',
account: '',
password: '',
})
async function submit() {
@@ -51,9 +50,8 @@ async function submit() {
<template>
<div class="login-page">
<section class="login-intro">
<div class="login-brand"><span>CC</span> 虫虫出海</div>
<div class="login-brand"><img class="login-brand-logo" :src="baiyueLogoWhite" alt="柏悦物流" /></div>
<div>
<p class="eyebrow">CHONGCHONG GLOBAL</p>
<h1>让跨境物流管理<br />清晰、可靠、可追踪</h1>
<p class="intro-copy">统一管理企业入驻、内部权限和头程订单,让每一次操作都有边界、有记录。</p>
</div>
@@ -80,7 +78,6 @@ async function submit() {
</el-button>
</el-form>
<div v-if="loginError" class="login-error" role="alert"><p>{{ loginError.message }}</p><ApiErrorMeta :details="loginError" /></div>
<div v-if="developmentHint" class="demo-tip" role="note">{{ developmentHint }}</div>
</div>
</section>
</div>