From aa7cc9aec0db01f5e80ab88c39b1c4337c9ad78f Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Mon, 15 Apr 2019 12:33:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(h5):=20=E5=8C=85=E5=90=AB=20tabBar=20?= =?UTF-8?q?=E6=97=B6=E8=B0=83=E7=94=A8=20reLaunch=20=E6=9C=AA=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=B8=85=E7=90=86=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/service/plugins/app/router-guard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/service/plugins/app/router-guard.js b/src/core/service/plugins/app/router-guard.js index d1e128c64d..a0e36bee15 100644 --- a/src/core/service/plugins/app/router-guard.js +++ b/src/core/service/plugins/app/router-guard.js @@ -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 -- GitLab