Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
c1c572c6
Commit
c1c572c6
authored
Apr 10, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理C端跳转至管理端免登录
parent
1420ed47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/modules/root/Login.jsx
+8
-2
No files found.
src/modules/root/Login.jsx
View file @
c1c572c6
...
@@ -10,6 +10,7 @@ import WechatLogin from './WechatLogin'
...
@@ -10,6 +10,7 @@ import WechatLogin from './WechatLogin'
import
BaseService
from
"@/domains/basic-domain/baseService"
;
import
BaseService
from
"@/domains/basic-domain/baseService"
;
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
_
from
'underscore'
;
import
_
from
'underscore'
;
import
user
from
'@/common/js/user'
;
const
{
TabPane
}
=
Tabs
;
const
{
TabPane
}
=
Tabs
;
...
@@ -32,8 +33,13 @@ function Login(props) {
...
@@ -32,8 +33,13 @@ function Login(props) {
console
.
log
(
'userId'
,
userId
);
console
.
log
(
'userId'
,
userId
);
console
.
log
(
'from'
,
from
);
console
.
log
(
'from'
,
from
);
if
(
from
===
'customer'
&&
enterpriseId
&&
userId
){
if
(
from
===
'customer'
&&
enterpriseId
&&
userId
){
console
.
log
(
'我进来了'
);
if
(
!
user
.
getToken
()
||
enterpriseId
!==
user
.
getEnterpriseId
()
){
getWXWorkLoginNoCheck
(
enterpriseId
,
userId
);
getWXWorkLoginNoCheck
(
enterpriseId
,
userId
);
}
else
{
window
.
RCHistory
.
push
({
pathname
:
`/switch-route`
,
})
}
}
}
},[])
},[])
function
getWXWorkLoginNoCheck
(
enterpriseId
,
userId
){
function
getWXWorkLoginNoCheck
(
enterpriseId
,
userId
){
...
...
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