提交 068a5bec 编写于 作者: 雪洛's avatar 雪洛

fix(v3): 修复v3版本alwaysShowBeforeRender为false时无法关闭启动界面的Bug askId: 87038

上级 35963d01
......@@ -7,7 +7,10 @@ import {
let todoNavigator = false
export function navigate (path, callback, isAppLaunch) {
if (__PLATFORM__ === 'app-plus') {
if (__PLATFORM__ === 'app-plus') {
if (isAppLaunch && __uniConfig.splashscreen && __uniConfig.splashscreen.autoclose && (!__uniConfig.splashscreen.alwaysShowBeforeRender)) {
plus.navigator.closeSplashscreen()
}
if (!isAppLaunch && todoNavigator) {
return console.error(`已存在待跳转页面${todoNavigator.path},请不要连续多次跳转页面${path}`)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册