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

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

上级 5a761996
...@@ -2,6 +2,11 @@ import { ...@@ -2,6 +2,11 @@ import {
parseQuery parseQuery
} from 'uni-shared' } from 'uni-shared'
import {
ANI_SHOW,
ANI_DURATION
} from '../../constants'
import { import {
showWebview showWebview
} from './util' } from './util'
...@@ -55,6 +60,14 @@ export function navigateTo ({ ...@@ -55,6 +60,14 @@ export function navigateTo ({
}, callbackId) { }, callbackId) {
const urls = url.split('?') 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] || '') const query = parseQuery(urls[1] || '')
navigate(path, function () { navigate(path, function () {
_navigateTo({ _navigateTo({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册