Skip to content

Commit

Permalink
fix(h5): 包含 tabBar 时调用 reLaunch 未正常清理 page
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Apr 15, 2019
1 parent 11e7dbd commit aa7cc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/service/plugins/app/router-guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function switchTab (routes) {
function reLaunch (toName) {
__uniConfig.reLaunch = (__uniConfig.reLaunch || 1) + 1
// 关闭所有页面
const pages = getCurrentPages()
const pages = getCurrentPages(true)
for (let i = pages.length - 1; i >= 0; i--) {
callPageHook(pages[i], 'onUnload')
// 重新reLaunch至首页可能会被keepAlive,先手动强制destroy
Expand Down

0 comments on commit aa7cc9a

Please sign in to comment.