Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
23aaaec8
authored
May 19, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
bfd044f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
src/views/User/login.vue
src/views/User/login.vue
View file @
23aaaec8
...
...
@@ -160,10 +160,21 @@
loadingInstance
.
close
();
if
(
res
.
err_code
===
0
)
{
Util
.
setCookie
(
"token"
,
res
.
data
.
api_token
,
1
);
if
(
this
.
$route
.
query
.
referer
)
{
window
.
location
.
href
=
"/#"
+
this
.
$route
.
query
.
referer
//强制要求微信绑定
if
(
!
res
.
data
.
is_bind_wechat
)
{
this
.
$http
(
'get'
,
"/api/login/getwxqrcode"
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
window
.
location
.
href
=
res
.
data
.
wx_login_url
;
}
else
{
Message
(
res
.
err_msg
);
}
})
}
else
{
window
.
location
.
href
=
'/'
;
if
(
this
.
$route
.
query
.
referer
)
{
window
.
location
.
href
=
"/#"
+
this
.
$route
.
query
.
referer
}
else
{
window
.
location
.
href
=
'/'
;
}
}
}
else
if
(
res
.
err_code
===
102
)
{
this
.
errror_text
=
res
.
err_msg
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment