提交 189fae8e 编写于 作者: Q qiang

fix: v3-app uni.navigateTo / uni.switchTab callback

上级 144c9b69
...@@ -62,6 +62,6 @@ export function navigateTo ({ ...@@ -62,6 +62,6 @@ export function navigateTo ({
query, query,
animationType, animationType,
animationDuration animationDuration
}) }, callbackId)
}, openType === 'appLaunch') }, openType === 'appLaunch')
} }
...@@ -85,21 +85,21 @@ function _switchTab ({ ...@@ -85,21 +85,21 @@ function _switchTab ({
} }
setStatusBarStyle() setStatusBarStyle()
return { invoke(callbackId, {
errMsg: 'switchTab:ok' errMsg: 'switchTab:ok'
} })
} }
export function switchTab ({ export function switchTab ({
url, url,
from, from,
openType openType
}) { }, callbackId) {
const path = url.split('?')[0] const path = url.split('?')[0]
navigate(path, function () { navigate(path, function () {
_switchTab({ _switchTab({
path, path,
from from
}) }, callbackId)
}, openType === 'appLaunch') }, openType === 'appLaunch')
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册