diff --git a/src/core/service/plugins/app/router-guard.js b/src/core/service/plugins/app/router-guard.js index 99d08e6997bd2afcb9353708c4ef7925288b146c..a91134eef6052bbaec423397b8295884d718fb4a 100644 --- a/src/core/service/plugins/app/router-guard.js +++ b/src/core/service/plugins/app/router-guard.js @@ -97,7 +97,7 @@ function afterEach (to, from) { const fromId = from.params.__id__ const toId = to.params.__id__ - const fromVm = getCurrentPages().find(pageVm => pageVm.$page.id === fromId) + const fromVm = getCurrentPages(true).find(pageVm => pageVm.$page.id === fromId) switch (to.type) { case 'navigateTo': // 前一个页面触发 onHide