提交 3fcf8207 编写于 作者: 雪洛's avatar 雪洛

fix(v3): 修复pages.json 内配置页面动画不生效的Bug askId:85654

上级 5a761996
import {
parseQuery
} from 'uni-shared'
} from 'uni-shared'
import {
ANI_SHOW,
ANI_DURATION
} from '../../constants'
import {
showWebview
......@@ -54,7 +59,15 @@ export function navigateTo ({
animationDuration
}, callbackId) {
const urls = url.split('?')
const path = urls[0]
const path = urls[0]
const routeStyles = __uniRoutes.find(route => route.path === path).window
const globalStyle = __uniConfig.window
if (!animationType) {
animationType = routeStyles.animationType || globalStyle.animationType || ANI_SHOW
}
if (!animationDuration) {
animationDuration = routeStyles.animationDuration || globalStyle.animationDuration || ANI_DURATION
}
const query = parseQuery(urls[1] || '')
navigate(path, function () {
_navigateTo({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册