From 59dec5c11c18b4e38af31fd3091c80077ed77419 Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Tue, 25 Aug 2026 12:20:08 +0800 Subject: [PATCH] =?UTF-8?q?Fix:5873=20=E3=80=90=E5=95=86=E5=9F=8E=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=E6=8C=81=E7=BB=AD=E6=97=B6=E9=97=B4=E6=94=B9=E6=88=905?= =?UTF-8?q?=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Loading/index.vue | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) 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); }