From 3f4b2204b6bfdd0e92977296be5e91e26a3f675a Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Wed, 5 Nov 2025 11:06:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E8=8A=82=E6=B5=81=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=97=AA=E5=B1=8F=E9=A1=B5=E6=A0=87=E7=AD=BE=E6=A0=8F=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在登录接口添加200ms的节流控制防止重复请求 闪屏页标签栏隐藏增加条件判断,仅在首次展示时执行 --- api/modules/login.js | 1 + pages/components/SplashScreen.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/modules/login.js b/api/modules/login.js index c15069a..2df98bc 100644 --- a/api/modules/login.js +++ b/api/modules/login.js @@ -17,6 +17,7 @@ export default { url: '/login/wxLogin', method: 'POST', data, + throttle : 200, // header: { // 'Content-Type': 'application/x-www-form-urlencoded' // }, diff --git a/pages/components/SplashScreen.vue b/pages/components/SplashScreen.vue index 7d4e166..c70a222 100644 --- a/pages/components/SplashScreen.vue +++ b/pages/components/SplashScreen.vue @@ -73,7 +73,9 @@ export default { mounted() { this.initSplash() - uni.hideTabBar() + if(!this.hasShownSplash()){ + uni.hideTabBar() + } }, beforeDestroy() { this.clearTimer()