提交 584ba462 编写于 作者: 雪洛's avatar 雪洛

fix: 修复多次navigateTo会重复跳转的Bug

上级 f4aa5576
......@@ -23,6 +23,8 @@ import {
import {
navigate
} from '../../framework/navigator'
let isNavigating = false
function _navigateTo ({
url,
......@@ -45,7 +47,8 @@ function _navigateTo ({
}),
animationType,
animationDuration,
() => {
() => {
isNavigating = false
invoke(callbackId, {
errMsg: 'navigateTo:ok'
})
......@@ -59,7 +62,11 @@ export function navigateTo ({
openType,
animationType,
animationDuration
}, callbackId) {
}, callbackId) {
if(isNavigating) {
return
}
isNavigating = true
const urls = url.split('?')
const path = urls[0]
const routeStyles = __uniRoutes.find(route => route.path === path).window
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册