From 068a5bec0071968ec84cc8f002d66c3cb1ae1a43 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 6 Jan 2020 20:20:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(v3):=20=E4=BF=AE=E5=A4=8Dv3=E7=89=88?= =?UTF-8?q?=E6=9C=ACalwaysShowBeforeRender=E4=B8=BAfalse=E6=97=B6=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=85=B3=E9=97=AD=E5=90=AF=E5=8A=A8=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84Bug=20askId:=2087038?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platforms/app-plus/service/framework/navigator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platforms/app-plus/service/framework/navigator.js b/src/platforms/app-plus/service/framework/navigator.js index 257beebe6..dbe1fb256 100644 --- a/src/platforms/app-plus/service/framework/navigator.js +++ b/src/platforms/app-plus/service/framework/navigator.js @@ -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}`) } -- GitLab