From 2e264ab4440a2ca27466d45ad23c6ffb3c0791e8 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Sat, 11 Nov 2023 09:35:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=89=93=E4=B8=8D=E5=BC=80=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E4=B8=8D=E4=BA=86=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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 } },