code refactor

This commit is contained in:
MaysWind
2025-01-27 00:38:19 +08:00
parent 1156499b05
commit 95c7b498ff
+1 -1
View File
@@ -290,7 +290,7 @@ export const useUserStore = defineStore('user', () => {
});
}
function getUserAvatarUrl(userInfoOrAvatarUrl: UserBasicInfo | string, disableBrowserCache: boolean | string): string | null {
function getUserAvatarUrl(userInfoOrAvatarUrl: UserBasicInfo | string | null, disableBrowserCache: boolean | string): string | null {
let avatarUrl = '';
if (isObject(userInfoOrAvatarUrl)) {