This commit is contained in:
zlwu committed 2026-05-12 22:07:53 +08:00
1 parent c87732fcd5
commit 058811ae77
107 files changed
+16983 -12758

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
/** 未设置头像时统一使用系统默认 logo(与登录页、侧栏 ArtLogo 一致) */
/** 未设置头像时统一使用叁强 logo(与登录页、侧栏 ArtLogo 一致) */
export const DEFAULT_USER_AVATAR_URL = '/logo1.jpg'
/** @deprecated 各角色默认已统一为 logo,保留参数仅为兼容旧调用 */
@@ -6,7 +6,7 @@ export function defaultAvatarPathByRole(_role: string | undefined): string {
return DEFAULT_USER_AVATAR_URL
}
/** 展示用头像:有自定义 URL 用自定义,否则用系统默认 logo */
/** 展示用头像:有自定义 URL 用自定义,否则用叁强 logo */
export function resolveUserAvatarUrl(avatarUrl: string | null | undefined, role: string | undefined): string {
const u = avatarUrl != null ? String(avatarUrl).trim() : ''
if (u) return u