panhui пре 3 година
родитељ
комит
7a089f3d56
1 измењених фајлова са 14 додато и 4 уклоњено
  1. 14 4
      src/main.js

+ 14 - 4
src/main.js

@@ -143,10 +143,20 @@ if (navigator.userAgent.includes('#cordova#')) {
         function () {
             StatusBar.overlaysWebView(true);
             window.$vm = app.mount('#app');
-            navigator.splashscreen.hide();
-            StatusBar.overlaysWebView(false);
-            StatusBar.backgroundColorByHexString('#0f0f27');
-            StatusBar.styleLightContent();
+            loadSplash(
+                () => {
+                    setTimeout(() => {
+                        navigator.splashscreen.hide();
+                    }, 100);
+                },
+                () => {
+                    navigator.splashscreen.hide();
+                }
+            ).then(res => {
+                StatusBar.overlaysWebView(false);
+                StatusBar.backgroundColorByHexString('#0f0f27');
+                StatusBar.styleLightContent();
+            });
             // loadSplash(
             //     () => {
             //         setTimeout(() => {