Skip to content

Commit

Permalink
Merge pull request #31 from AnnanSun/Modify-info
Browse files Browse the repository at this point in the history
Modify info
  • Loading branch information
IceyWu authored Jan 22, 2025
2 parents 82bc902 + a4545cc commit ec5205e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { customDestr, deepClone, getObjVal } from '@iceywu/utils'

// 获取用户头像
export function getUserAvatar(data: any) {
const oldAvatar = getObjVal(data, 'avatar')
const oldAvatar = getObjVal(data, 'avatar') || 'https://test.wktest.cn:3001/assets/default/boy.png'
const baseAvatar = getObjVal(data, 'avatarInfo.url')
return baseAvatar || oldAvatar
}
Expand Down

0 comments on commit ec5205e

Please sign in to comment.