From e4f9f6636d95413cb9ee81e3d9a857db9c1d31ed Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 23 Sep 2025 11:02:12 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"test:=20log=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A4=B4=E8=8E=B7=E5=8F=96=E5=8A=9F=E8=83=BD?= =?UTF-8?q?2"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3b4a0b925a0d9b5ac07410aa28c7e3df2701beba. --- src/views/TopList/TopList.vue | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/views/TopList/TopList.vue b/src/views/TopList/TopList.vue index b8a7c10..578e905 100644 --- a/src/views/TopList/TopList.vue +++ b/src/views/TopList/TopList.vue @@ -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() // 获取我的贡献 } // 关闭弹窗