Skip to content

Commit 399d373

Browse files
authored
Merge pull request #2330 from didi/feat-router-lock-addpath
route跳转逻辑的Lock抛错补充path
2 parents b3d4d1b + eff0ccd commit 399d373

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/api-proxy/src/platform/api/route/index.ios.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ function getBasePath (navigation) {
1414
let timerId = null
1515
function isLock (navigationHelper, type, options) {
1616
if (navigationHelper.lastSuccessCallback && navigationHelper.lastFailCallback) {
17-
const res = { errMsg: `${type}:fail the previous routing event didn't complete` }
17+
const { path } = parseUrl(options.url)
18+
const res = {
19+
errMsg: `${type}:fail the previous routing event didn't complete`,
20+
path
21+
}
1822
failHandle(res, options.fail, options.complete)
1923
return true
2024
}

0 commit comments

Comments
 (0)