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(() => {