fix(common): 🐛 logout notify when other login

This commit is contained in:
wanwanruwoxin
2025-10-17 02:05:48 +08:00
committed by Dawn
parent 717ddcf7b4
commit e3330e9d7f
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -119,7 +119,8 @@ export const useLogin = () => {
const userDetail: any = await getUserDetail()
userStatusStore.stateId = userDetail.userStateId
const account = {
...userDetail
...userDetail,
client: isDesktop() ? 'PC' : 'MOBILE'
}
userStore.userInfo = account
loginHistoriesStore.addLoginHistory(account)
+1
View File
@@ -35,6 +35,7 @@ export class AvatarUtils {
public static getAvatarUrl(avatar: string): string {
const DEFAULT = '/logoD.png'
if (!avatar) return DEFAULT
const rawAvatar = avatar.trim()
if (AvatarUtils.isDefaultAvatar(rawAvatar)) {
return `/avatar/${rawAvatar}.webp`