From 95c7b498ff16147f18a2a2b44a210befc871162e Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 27 Jan 2025 00:38:19 +0800 Subject: [PATCH] code refactor --- src/stores/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {