优化启动页面

This commit is contained in:
weipengfei 2023-10-07 10:28:04 +08:00
parent bc396e3607
commit 945623e787
2 changed files with 8 additions and 6 deletions

10
App.vue
View File

@ -55,12 +55,14 @@
this.$isResolve() this.$isResolve()
try { try {
if (!this.$store.state.app.token) uni.reLaunch({ if (!this.$store.state.app.token) uni.reLaunch({
url: '/pages/oaLogin/oaLogin' url: '/pages/oaLogin/oaLogin',
success() {
plus.navigator.closeSplashscreen(); //
}
}) })
else plus.navigator.closeSplashscreen();
} catch (e) { } catch (e) {
uni.reLaunch({ plus.navigator.closeSplashscreen();
url: '/pages/oaLogin/oaLogin'
})
} }
}, },
onShow: function() { onShow: function() {

View File

@ -15,9 +15,9 @@
// "immersed": false // "immersed": false
// }, // },
"splashscreen" : { "splashscreen" : {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender" : false,
"waiting" : true, "waiting" : true,
"autoclose" : true, "autoclose" : false,
"delay" : 0 "delay" : 0
}, },
/* */ /* */