提交 c66fae7d 编写于 作者: Q qiang

fix: 调整 app-v3 onUnload 生命周期细节表现 question/94649

上级 ce208368
......@@ -88,10 +88,10 @@ export function registerPage ({
$remove () {
const index = pages.findIndex(page => page === this)
if (index !== -1) {
pages.splice(index, 1)
if (!webview.nvue) {
this.$vm.$destroy()
}
pages.splice(index, 1)
if (process.env.NODE_ENV !== 'production') {
console.log('[uni-app] removePage', path, webview.id)
}
......@@ -134,4 +134,4 @@ export function registerPage ({
}
return webview
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册