diff --git a/src/api/utils.js b/src/api/utils.js index c99a53a..a0938ce 100644 --- a/src/api/utils.js +++ b/src/api/utils.js @@ -21,7 +21,7 @@ export function useUserInfo(id) { watch(id, () => { id.value && boeRequest(GET_USER_LIST, {id: id.value}).then(res => { userInfo.value = res.result.userInfoList[0] - userInfo.value.avatar = `${import.meta.env.VITE_BOE_API_URL}/upload${userInfo.value.avatar?userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'}` + userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png' }) }) return userInfo