提交 7c13a858 编写于 作者: Q qiang 提交者: 雪洛

fix(harmony): 调整 redirectTo 关闭页面方式

上级 90331030
...@@ -63,11 +63,6 @@ function _redirectTo({ ...@@ -63,11 +63,6 @@ function _redirectTo({
lastPage && removePage(lastPage) lastPage && removePage(lastPage)
return new Promise((resolve) => { return new Promise((resolve) => {
// TODO 目前redirectTo => back + pushUrl,如存在闪白问题需考虑优化此处
if (lastPage) {
const webview = (lastPage as ComponentPublicInstance).$getAppWebview!()
webview.close('none')
}
showWebview( showWebview(
registerPage({ registerPage({
url, url,
...@@ -78,6 +73,11 @@ function _redirectTo({ ...@@ -78,6 +73,11 @@ function _redirectTo({
'none', 'none',
0, 0,
() => { () => {
if (lastPage) {
const webview = (lastPage as ComponentPublicInstance)
.$getAppWebview!()
webview.close('none')
}
resolve(undefined) resolve(undefined)
} }
) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册