mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-08 02:16:47 +08:00
util
This commit is contained in:
@@ -23,7 +23,7 @@ export function delCookie(name){
|
|||||||
export function useUserInfo(id) {
|
export function useUserInfo(id) {
|
||||||
const userInfo = ref({})
|
const userInfo = ref({})
|
||||||
watch(id, () => {
|
watch(id, () => {
|
||||||
id.value && boeRequest(GET_USER_LIST, {id: id.value}).then(res => {
|
id.value && boeRequest(GET_USER_LIST).then(res => {
|
||||||
userInfo.value = res.result.userInfoList[0]
|
userInfo.value = res.result.userInfoList[0]
|
||||||
userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'
|
userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user