fix: 调整请求的发送位置

This commit is contained in:
hzj 2025-09-23 11:08:42 +08:00
parent 4cbd9f562c
commit 00a0ae4dda

View File

@ -782,9 +782,7 @@ const connectToApp = async () => {
console.groupEnd() console.groupEnd()
// //
// if (onConnectionSuccess) { getUserInfo()
// onConnectionSuccess({ environment: 'browser' })
// }
return { success: true, environment: 'browser' } return { success: true, environment: 'browser' }
} }
@ -804,9 +802,7 @@ const connectToApp = async () => {
console.groupEnd() console.groupEnd()
// //
// if (onConnectionSuccess) { getUserInfo()
// onConnectionSuccess({ environment: 'app', fromCache: true })
// }
return { success: true, environment: 'app', fromCache: true } return { success: true, environment: 'app', fromCache: true }
} }
@ -820,9 +816,7 @@ const connectToApp = async () => {
console.groupEnd() console.groupEnd()
// //
// if (onConnectionSuccess) { getUserInfo()
// onConnectionSuccess({ environment: 'app', fromCache: true })
// }
return { success: true, environment: 'app', fromCache: true } return { success: true, environment: 'app', fromCache: true }
} }
@ -873,9 +867,7 @@ const connectToApp = async () => {
console.groupEnd() console.groupEnd()
// //
// if (onConnectionSuccess) { getUserInfo()
// onConnectionSuccess(connectionResult)
// }
return connectionResult return connectionResult
} catch (error) { } catch (error) {
@ -1060,6 +1052,7 @@ const getCountdown = () => {
if (diff <= 0) { if (diff <= 0) {
// //
getUserInfo()
resetPage() resetPage()
targetTime.value += 7 * 86400000 // +7 () targetTime.value += 7 * 86400000 // +7 ()
diff = targetTime.value - now diff = targetTime.value - now
@ -1198,8 +1191,6 @@ const updatePageData = () => {
getThisWeekRewards() // getThisWeekRewards() //
getThisWeekGifts() // getThisWeekGifts() //
getThisWeekExchangeGoods() // getThisWeekExchangeGoods() //
getUserInfo()
} }
const debouceGetThisWeekRanking = useThrottle(() => { const debouceGetThisWeekRanking = useThrottle(() => {