Revert "test: log调试请求头获取功能2"

This reverts commit 3b4a0b925a0d9b5ac07410aa28c7e3df2701beba.
This commit is contained in:
tianfeng 2025-09-23 11:02:12 +08:00
parent 4e2ca013c0
commit e4f9f6636d

View File

@ -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() //
}
//