Initial role user app

This commit is contained in:
湛兮
2026-06-02 14:46:39 +08:00
commit 003dc60111
62 changed files with 7835 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
export function formatDateTime(value?: string | null) {
if (!value) return "暂未设置";
return new Intl.DateTimeFormat("zh-CN", {
month: "2-digit",
day: "2-digit",
hour: "2-digit",
minute: "2-digit"
}).format(new Date(value));
}
export function roleNames(roles: { name: string }[]) {
return roles.map((role) => role.name).join("、") || "未分配角色";
}