Optimize code

This commit is contained in:
2023-12-25 17:54:31 +08:00
parent 27a41944c6
commit 6510567fdf
9 changed files with 119 additions and 39 deletions

View File

@@ -112,6 +112,12 @@ export const getNickname = async () => {
return user.userInfo.nickname
}
export const getAvatar = async () => {
const user = await getUserInfo()
return user.userInfo.avatar
}
export const getUsername = async () => {
const user = await getUserInfo()