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: 修复开屏关闭逻辑并移除登录失败提示
在SplashScreen组件中添加closeSplash方法调用确保正确关闭开屏 移除登录页面的失败提示以避免重复提示干扰用户体验
main
前端-胡立永
2 days ago
parent
3cf55eb7f2
commit
a6c512eaf7
2 changed files
with
5 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
pages/components/SplashScreen.vue
+4
-4
subPages/login/login.vue
+ 1
- 0
pages/components/SplashScreen.vue
View File
@ -120,6 +120,7 @@ export default {
if
(
this
.
hasShownSplash
(
)
)
{
console
.
log
(
'开屏已显示过,跳过开屏动画'
)
this
.
$emit
(
'close'
)
this
.
closeSplash
(
)
return
}
+ 4
- 4
subPages/login/login.vue
View File
@ -203,10 +203,10 @@ export default {
}
}
catch
(
error
)
{
console
.
error
(
'登录失败:'
,
error
)
;
uni
.
showToast
(
{
title
:
'登录失败,请重试'
,
icon
:
'none
'
}
)
;
/
/
u
n
i
.
s
h
o
w
T
o
a
s
t
(
{
/
/
t
i
t
l
e
:
'
登
录
失
败
,
请
重
试
'
,
/
/
i
c
o
n
:
'
n
o
n
e
'
/
/
}
)
;
/
/
#
i
f
d
e
f
H
5
/
/
H
5
环
境
下
如
果
登
录
失
败
,
清
除
U
R
L
参
数
并
重
新
加
载
页
面
Write
Preview
Loading…
Cancel
Save