diff --git a/pages/Loading/index.vue b/pages/Loading/index.vue index 101844b..5148562 100644 --- a/pages/Loading/index.vue +++ b/pages/Loading/index.vue @@ -52,18 +52,15 @@ export default { }, 5000) return; } + // 未登录:静默处理登录,5秒后跳转业务页面 cookie.get("spread"); - // this.toLaunch(); - if (this.$deviceType == "app") { - // this.toLaunch(); - this.$yrouter.switchTab({ - path: "/pages/home/index" - }); - return; + if (this.$deviceType != "app") { + //检查授权信息 + this.checkUserInfo(); } - - //检查授权信息 - this.checkUserInfo(); + setTimeout(() => { + this.toLaunch(); + }, 5000); }, methods: { ...mapActions(["changeAuthorization", "setUserInfo"]), @@ -89,11 +86,7 @@ export default { } } - login(loginInfo).finally(() => { - this.$yrouter.switchTab({ - path: "/pages/home/index" - }); - }); + login(loginInfo); }