Revert "test: log调试请求头获取功能2"
This reverts commit 3b4a0b925a0d9b5ac07410aa28c7e3df2701beba.
This commit is contained in:
parent
4e2ca013c0
commit
e4f9f6636d
@ -1044,21 +1044,13 @@ const getAllTopOne = async () => {
|
||||
|
||||
//获取用户信息
|
||||
const getUserInfo = async () => {
|
||||
try {
|
||||
if (Object.keys(userInfo.value).length === 0) {
|
||||
const resUserInfo = await getMemberProfile()
|
||||
console.log('resUserInfo:', resUserInfo)
|
||||
|
||||
if (resUserInfo.status && resUserInfo.body) {
|
||||
userInfo.value = resUserInfo.body
|
||||
}
|
||||
if (Object.keys(userInfo.value).length === 0) {
|
||||
const resUserInfo = await getMemberProfile()
|
||||
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