feat: 完善平台总后台模块

This commit is contained in:
2026-07-27 00:18:42 +08:00
parent 073eb89762
commit 642980960e
197 changed files with 22356 additions and 1060 deletions

View File

@@ -0,0 +1,14 @@
/** Local default avatar: linear neutral user icon. */
export const DEFAULT_USER_AVATAR = '/avatar-default.svg';
const BROKEN_AVATAR_PATTERN = /pstatp\.com|vcloud\/vadmin/;
export function resolveAvatarUrl(url?: string) {
if (!url || BROKEN_AVATAR_PATTERN.test(url)) {
return DEFAULT_USER_AVATAR;
}
if (url.startsWith('//')) {
return `https:${url}`;
}
return url;
}