From a6c512eaf7241217bec5f4d0e0fe66ebde97e21b Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Wed, 5 Nov 2025 01:45:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BC=80=E5=B1=8F?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E9=80=BB=E8=BE=91=E5=B9=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在SplashScreen组件中添加closeSplash方法调用确保正确关闭开屏 移除登录页面的失败提示以避免重复提示干扰用户体验 --- pages/components/SplashScreen.vue | 1 + subPages/login/login.vue | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pages/components/SplashScreen.vue b/pages/components/SplashScreen.vue index 6bc6e3d..7d4e166 100644 --- a/pages/components/SplashScreen.vue +++ b/pages/components/SplashScreen.vue @@ -120,6 +120,7 @@ export default { if (this.hasShownSplash()) { console.log('开屏已显示过,跳过开屏动画') this.$emit('close') + this.closeSplash() return } diff --git a/subPages/login/login.vue b/subPages/login/login.vue index b2a2f20..b4a0fe5 100644 --- a/subPages/login/login.vue +++ b/subPages/login/login.vue @@ -203,10 +203,10 @@ export default { } } catch (error) { console.error('登录失败:', error); - uni.showToast({ - title: '登录失败,请重试', - icon: 'none' - }); + // uni.showToast({ + // title: '登录失败,请重试', + // icon: 'none' + // }); // #ifdef H5 // H5环境下如果登录失败,清除URL参数并重新加载页面