refactor: 優化使用者管理介面與角色顯示
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 54s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

- 移除 Header 中的角色名稱顯示
- 調整使用者表單欄位順序(使用者名稱、姓名並排)
- 將角色分配區塊移至基本資料下方
- 修復 email 欄位 null 值警告
- 修復角色選擇無限迴圈錯誤
- 統一角色顯示格式(中文名稱在上,代號在下)
This commit is contained in:
2026-01-14 09:52:56 +08:00
parent 8e364bc2f7
commit 7dfe46ff9a
5 changed files with 196 additions and 200 deletions

View File

@@ -352,11 +352,6 @@ export default function AuthenticatedLayout({
</span>
<span className="text-xs text-slate-500">
{user.username || 'Administrator'}
{user.roles && user.roles.length > 0 && (
<span className="block text-[10px] text-primary-main">
[{user.roles.join(', ')}]
</span>
)}
</span>
</div>
<div className="h-9 w-9 bg-slate-100 rounded-full flex items-center justify-center text-slate-600 group-hover:bg-primary-lightest group-hover:text-primary-main transition-all">