This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Augcl
/
englishread-front
generated from
hly/uniapp-shop-templates
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fix: 添加登录请求节流并优化闪屏页标签栏隐藏逻辑
在登录接口添加200ms的节流控制防止重复请求 闪屏页标签栏隐藏增加条件判断,仅在首次展示时执行
main
前端-胡立永
2 days ago
parent
a6c512eaf7
commit
3f4b2204b6
2 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
api/modules/login.js
+3
-1
pages/components/SplashScreen.vue
+ 1
- 0
api/modules/login.js
View File
@ -17,6 +17,7 @@ export default {
url
:
'/login/wxLogin'
,
method
:
'POST'
,
data
,
throttle
:
200
,
// header: {
// 'Content-Type': 'application/x-www-form-urlencoded'
// },
+ 3
- 1
pages/components/SplashScreen.vue
View File
@ -73,7 +73,9 @@ export default {
mounted
(
)
{
this
.
initSplash
(
)
uni
.
hideTabBar
(
)
if
(
!
this
.
hasShownSplash
(
)
)
{
uni
.
hideTabBar
(
)
}
}
,
beforeDestroy
(
)
{
this
.
clearTimer
(
)
Write
Preview
Loading…
Cancel
Save