提交 cfe3d220 编写于 作者: M mehaotian

updata: 重新reLaunch至首页可能会被keepAlive,先手动强制destroy

上级 99335593
......@@ -33,7 +33,9 @@ function reLaunch (toName) {
// 关闭所有页面
const pages = getCurrentPages()
for (let i = pages.length - 1; i >= 0; i--) {
callPageHook(pages[i], 'onUnload')
callPageHook(pages[i], 'onUnload')
// 重新reLaunch至首页可能会被keepAlive,先手动强制destroy
pages[i].$destroy()
}
this.keepAliveInclude = []
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册