diff --git a/src/stores/user.ts b/src/stores/user.ts index b2746ef9..c407b033 100644 --- a/src/stores/user.ts +++ b/src/stores/user.ts @@ -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)) {