优化启动页面

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()
try {
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) {
uni.reLaunch({
url: '/pages/oaLogin/oaLogin'
})
plus.navigator.closeSplashscreen();
}
},
onShow: function() {

View File

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