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
7c1372bf
Commit
7c1372bf
authored
Jun 28, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Plain Diff
feat:解决合并代码后的冲突
parents
6740c852
1a5ac404
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
src/index.tsx
+9
-10
src/modules/root/Login.jsx
+0
-1
No files found.
src/index.tsx
View file @
7c1372bf
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-04-27 20:35:34
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-28 1
5:38:38
* @LastEditTime: 2021-06-28 1
6:17:53
* @Description:
*/
...
...
@@ -78,22 +78,21 @@ if (getParameterByName('code') && isWeiXin()) {
}
else
{
mount
()
}
function
getWXWorkLoginNoCheck
(
enterpriseId
:
string
,
userId
:
string
){
function
getWXWorkLoginNoCheck
(
enterpriseId
:
string
,
userId
:
string
)
{
const
params
=
{
appTermEnum
:
'XIAOMAI_CLOUD_CLASS_PC_WEB_ADMIN'
,
enterpriseId
,
userId
,
};
BaseService
.
getWXWorkLoginNoCheck
(
params
).
then
((
res
)
=>
{
User
.
setUserId
(
res
.
result
.
loginInfo
.
userId
)
;
User
.
setToken
(
res
.
result
.
loginInfo
.
xmToken
)
;
User
.
setEnterpriseId
(
res
.
result
.
enterpriseId
)
;
window
.
currentStoreUserInfo
=
{}
;
BaseService
.
getWXWorkLoginNoCheck
(
params
).
then
((
res
:
any
)
=>
{
User
.
setUserId
(
res
.
result
.
loginInfo
.
userId
)
User
.
setToken
(
res
.
result
.
loginInfo
.
xmToken
)
User
.
setEnterpriseId
(
res
.
result
.
enterpriseId
)
window
.
currentStoreUserInfo
=
{}
window
.
currentStoreUserInfo
.
userId
=
res
.
result
.
loginInfo
.
userId
;
window
.
currentStoreUserInfo
.
token
=
res
.
result
.
loginInfo
.
xmToken
;
window
.
currentStoreUserInfo
.
enterpriseId
=
res
.
result
.
enterpriseId
;
User
.
setIdentifier
(
res
.
result
.
identifier
)
;
mount
()
User
.
setIdentifier
(
res
.
result
.
identifier
)
mount
()
;
});
}
src/modules/root/Login.jsx
View file @
7c1372bf
...
...
@@ -55,7 +55,6 @@ function Login(props) {
User
.
removeUserId
();
User
.
removeToken
();
User
.
removeEnterpriseId
();
storage
.
set
(
'expiration_tip_login'
,
true
);
},
[]);
function
getWXWorkLoginNoCheck
(
enterpriseId
,
userId
)
{
const
params
=
{
...
...
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