From a4127b3dda66cc6367508d3f3a389c3f24cc095b Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 4 Dec 2020 20:18:31 +0800 Subject: [PATCH] fix(h5): keep-alive --- 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 726c8fcec..b3e478194 100644 --- a/src/core/service/plugins/app/router-guard.js +++ b/src/core/service/plugins/app/router-guard.js @@ -81,7 +81,7 @@ function beforeEach (to, from, next, routes) { if (toId === fromId && to.type !== 'reLaunch') { // 相同页面阻止 // 处理外部修改 history 导致卡在当前页面的问题 if (to.fullPath !== from.fullPath) { - removeKeepAliveInclude.call(this, toName) + addKeepAliveInclude.call(this, toName) next() } else { next(false) -- GitLab