test: 调整请求的发送位置

This commit is contained in:
hzj 2025-09-23 10:56:53 +08:00
parent 8ff23c000e
commit 4e2ca013c0

View File

@ -692,9 +692,7 @@ const connectToApp = async () => {
console.groupEnd()
//
// if (onConnectionSuccess) {
// onConnectionSuccess({ environment: 'browser' })
// }
getUserInfo()
return { success: true, environment: 'browser' }
}
@ -717,9 +715,7 @@ const connectToApp = async () => {
console.groupEnd()
//
// if (onConnectionSuccess) {
// onConnectionSuccess({ environment: 'app', fromCache: true })
// }
getUserInfo()
return { success: true, environment: 'app', fromCache: true }
}
@ -735,9 +731,7 @@ const connectToApp = async () => {
console.groupEnd()
//
// if (onConnectionSuccess) {
// onConnectionSuccess({ environment: 'app', fromCache: true })
// }
getUserInfo()
return { success: true, environment: 'app', fromCache: true }
}
@ -797,9 +791,7 @@ const connectToApp = async () => {
console.groupEnd()
//
// if (onConnectionSuccess) {
// onConnectionSuccess(connectionResult)
// }
getUserInfo()
return connectionResult
} catch (error) {
@ -809,11 +801,6 @@ const connectToApp = async () => {
appConnected.value = false
console.groupEnd()
//
// if (onConnectionFailed) {
// onConnectionFailed(error)
// }
//
if (error.message && error.message.includes('parse access')) {
router.push({ path: '/not_app', query: { message: error.message } })
@ -964,6 +951,7 @@ const getCountdown = () => {
let diff = targetTime.value - now
if (diff <= 0) {
getUserInfo()
updatePageData() //
targetTime.value += 7 * 86400000 // +7 ()
diff = targetTime.value - now
@ -1101,7 +1089,6 @@ const observer = new IntersectionObserver((entries) => {
//
const updatePageData = () => {
getUserInfo()
getTopList(kingListParams.value) //
getTopList(queenListParams.value) //
getRewardsAndGifts() //top