fix: 调整请求的发送位置
This commit is contained in:
parent
4cbd9f562c
commit
00a0ae4dda
@ -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(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user