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