test: log调试请求头获取功能2
This commit is contained in:
parent
62e75d0061
commit
3b4a0b925a
@ -1056,13 +1056,21 @@ const getAllTopOne = async () => {
|
|||||||
|
|
||||||
//获取用户信息
|
//获取用户信息
|
||||||
const getUserInfo = async () => {
|
const getUserInfo = async () => {
|
||||||
if (Object.keys(userInfo.value).length === 0) {
|
try {
|
||||||
const resUserInfo = await getMemberProfile()
|
if (Object.keys(userInfo.value).length === 0) {
|
||||||
if (resUserInfo.status && resUserInfo.body) {
|
const resUserInfo = await getMemberProfile()
|
||||||
userInfo.value = resUserInfo.body
|
console.log('resUserInfo:', resUserInfo)
|
||||||
|
|
||||||
|
if (resUserInfo.status && resUserInfo.body) {
|
||||||
|
userInfo.value = resUserInfo.body
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
getMyContribution() // 获取我的贡献
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to fetch get user:', error)
|
||||||
|
console.error('error:' + error.response.errorMsg)
|
||||||
|
throw error
|
||||||
}
|
}
|
||||||
getMyContribution() // 获取我的贡献
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关闭弹窗
|
// 关闭弹窗
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user