diff --git a/App.vue b/App.vue index 7d92df4..024e4d1 100644 --- a/App.vue +++ b/App.vue @@ -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 } },