Skip to content

Commit

Permalink
update: 临时先把跳转的pending干掉
Browse files Browse the repository at this point in the history
  • Loading branch information
human committed Jan 3, 2025
1 parent 527bc64 commit dad8690
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/api-proxy/src/platform/api/route/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ function resolvePath (relative, base) {
return stack.join('/')
}

let toPending = false
// let toPending = false
function navigateTo (options = {}) {
if (toPending) {
return
}
// if (toPending) {
// return
// }
toPending = true
const navigation = Object.values(global.__mpxPagesMap || {})[0]?.[1]
const navigationHelper = global.__navigationHelper
Expand All @@ -56,16 +56,16 @@ function navigateTo (options = {}) {
failHandle(res, options.fail, options.complete)
}
navigationHelper.transitionEndCallback = () => {
toPending = false
// toPending = false
}
}
}
let redirectPending = false
// let redirectPending = false
function redirectTo (options = {}) {
if (redirectPending) {
return
}
redirectPending = true
// redirectPending = true
const navigation = Object.values(global.__mpxPagesMap || {})[0]?.[1]
const navigationHelper = global.__navigationHelper
if (navigation && navigationHelper) {
Expand All @@ -82,7 +82,7 @@ function redirectTo (options = {}) {
failHandle(res, options.fail, options.complete)
}
navigationHelper.transitionEndCallback = () => {
redirectPending = false
// redirectPending = false
}
}
}
Expand Down

0 comments on commit dad8690

Please sign in to comment.