调整 发布

This commit is contained in:
浅念
2026-03-12 16:48:21 +08:00
parent 41b7588062
commit bc81b16419
9 changed files with 441 additions and 64 deletions
+9 -4
View File
@@ -4,8 +4,8 @@
<!-- 左侧展示区域 -->
<div class="login-left">
<div class="logo-section">
<h1 style="color: #fff;">USED CAR</h1>
<!-- <p>二手车管理系统</p> -->
<h1 style="color: #fff">USED CAR</h1>
<p>smartcar</p>
</div>
</div>
@@ -160,9 +160,14 @@
// 角色设置辅助函数
const getRoles = (role: number, role_wp: number | null) => {
const roles: string[] = []
// 基础角色
const baseRole = role == 1 ? 'business' : role == 2 ? 'procurement' : 'alls'
const roles = [baseRole]
if (role == 1) {
roles.push('business')
} else if (role == 2) {
roles.push('procurement')
}
// 根据 role_wp 添加额外角色
if (role_wp == 1) {