From 00a0ae4ddafa248b827eca79218a79f2d7c54a57 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Tue, 23 Sep 2025 11:08:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E7=9A=84=E5=8F=91=E9=80=81=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/WeeklyStar/WeeklyStar.vue | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/views/WeeklyStar/WeeklyStar.vue b/src/views/WeeklyStar/WeeklyStar.vue index de537ae..bfe04c0 100644 --- a/src/views/WeeklyStar/WeeklyStar.vue +++ b/src/views/WeeklyStar/WeeklyStar.vue @@ -782,9 +782,7 @@ const connectToApp = async () => { console.groupEnd() // 触发连接成功回调 - // if (onConnectionSuccess) { - // onConnectionSuccess({ environment: 'browser' }) - // } + getUserInfo() return { success: true, environment: 'browser' } } @@ -804,9 +802,7 @@ const connectToApp = async () => { console.groupEnd() // 触发连接成功回调 - // if (onConnectionSuccess) { - // onConnectionSuccess({ environment: 'app', fromCache: true }) - // } + getUserInfo() return { success: true, environment: 'app', fromCache: true } } @@ -820,9 +816,7 @@ const connectToApp = async () => { console.groupEnd() // 触发连接成功回调 - // if (onConnectionSuccess) { - // onConnectionSuccess({ environment: 'app', fromCache: true }) - // } + getUserInfo() return { success: true, environment: 'app', fromCache: true } } @@ -873,9 +867,7 @@ const connectToApp = async () => { console.groupEnd() // 触发连接成功回调 - // if (onConnectionSuccess) { - // onConnectionSuccess(connectionResult) - // } + getUserInfo() return connectionResult } catch (error) { @@ -1060,6 +1052,7 @@ const getCountdown = () => { if (diff <= 0) { // 初始化数据 + getUserInfo() resetPage() targetTime.value += 7 * 86400000 // +7天 (更新闭包变量) diff = targetTime.value - now @@ -1198,8 +1191,6 @@ const updatePageData = () => { getThisWeekRewards() // 获取本周奖励 getThisWeekGifts() // 获取本周礼物 getThisWeekExchangeGoods() // 获取本周可兑换商品 - - getUserInfo() } const debouceGetThisWeekRanking = useThrottle(() => {