This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Augcl
/
novel-front-app
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(auth): 优化微信登录回调处理逻辑
将H5环境下的微信授权回调检查从mounted移到created生命周期 在登录成功后添加H5环境下的页面跳转逻辑
master
前端-胡立永
2 days ago
parent
b9cbdad6ba
commit
93815a8ea9
1 changed files
with
7 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-6
pages_order/auth/wxLogin.vue
+ 7
- 6
pages_order/auth/wxLogin.vue
View File
@ -67,13 +67,10 @@
if
(
query
.
path
)
{
this
.
config
=
query
}
/
/
#
i
f
d
e
f
H
5
this
.
checkWechatAuthCallback
(
)
;
/
/
#
e
n
d
i
f
}
,
/
/
#
i
f
d
e
f
H
5
mounted
(
)
{
/
/
H
5
环
境
下
检
查
U
R
L
参
数
,
处
理
微
信
授
权
回
调
this
.
checkWechatAuthCallback
(
)
;
}
,
/
/
#
e
n
d
i
f
methods
:
{
/
/
微
信
登
录
统
一
入
口
handleLogin
(
)
{
@ -194,6 +191,10 @@
}
)
;
return
;
}
else
{
/
/
#
i
f
d
e
f
H
5
window
.
location
=
'https://h5.budingxiaoshuo.com'
return
/
/
#
e
n
d
i
f
uni
.
showToast
(
{
title
:
'登录成功'
,
icon
:
'success'
Write
Preview
Loading…
Cancel
Save