修复小程序页面打不开跳转不了的bug

This commit is contained in:
weipengfei 2023-11-11 09:35:21 +08:00
parent ad020f8435
commit 2e264ab444

16
App.vue
View File

@ -54,8 +54,6 @@
}
}
console.log('App Launch')
this.$store.dispatch('initConfig');
this.$isResolve()
try {
if (!this.$store.state.app.token) uni.reLaunch({
url: '/pages/oaLogin/oaLogin',
@ -63,16 +61,28 @@
// #ifdef APP-PLUS
plus.navigator.closeSplashscreen(); //
// #endif
this.$isResolve()
}
})
else {
this.$store.dispatch('initConfig');
this.$isResolve()
// #ifdef APP-PLUS
plus.navigator.closeSplashscreen(); //
// #endif
}
} catch (e) {
this.$isResolve()
// #ifdef APP-PLUS
plus.navigator.closeSplashscreen(); //
uni.reLaunch({
url: '/pages/oaLogin/oaLogin',
success() {
// #ifdef APP-PLUS
plus.navigator.closeSplashscreen(); //
// #endif
this.$isResolve()
}
})
// #endif
}
},