From b0ddea9eae9bb3f6961bb610f1800bbe31c9af42 Mon Sep 17 00:00:00 2001 From: "U-BOE\\ZXYJY05" Date: Mon, 7 Aug 2023 14:15:04 +0800 Subject: [PATCH] util --- src/api/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/utils.js b/src/api/utils.js index 08fce68..4ad0d2b 100644 --- a/src/api/utils.js +++ b/src/api/utils.js @@ -23,7 +23,7 @@ export function delCookie(name){ export function useUserInfo(id) { const userInfo = ref({}) 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.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png' })