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
d80b7351
Commit
d80b7351
authored
Jun 23, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:解决合并代码后的冲突
parent
247b3fb5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
src/common/js/user.ts
+8
-3
src/modules/root/Header.jsx
+4
-4
No files found.
src/common/js/user.ts
View file @
d80b7351
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-08-31 09:34:25
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-2
2 11:16:53
* @LastEditTime: 2021-06-2
3 16:08:50
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -11,8 +11,13 @@ import Storage from './storage';
import
{
PREFIX
,
USER_PREFIX
}
from
'@/domains/basic-domain/constants'
;
declare
var
window
:
any
;
class
User
{
getStoreId
()
{
return
window
.
currentStoreUserInfo
.
storeId
||
Storage
.
get
(
`
${
PREFIX
}
_storeId`
);
getVersion
()
{
return
Storage
.
getObj
(
`
${
PREFIX
}
_version`
)
}
getStoreId
(){
return
window
.
currentStoreUserInfo
.
storeId
||
Storage
.
get
(
`
${
PREFIX
}
_storeId`
)
}
getEnterpriseId
()
{
...
...
src/modules/root/Header.jsx
View file @
d80b7351
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-06-23 1
4:04:57
* @LastEditTime: 2021-06-23 1
6:11:49
* @Description:
*/
import
React
,
{
useRef
,
useContext
,
useEffect
,
useState
}
from
"react"
;
...
...
@@ -276,9 +276,9 @@ function Header(props) {
User
.
setStoreUserId
(
item
.
storeUserId
);
}
})
User
.
setUserId
(
window
.
currentStoreUserInfo
.
userId
);
User
.
setToken
(
window
.
currentStoreUserInfo
.
token
);
User
.
setEnterpriseId
(
window
.
currentStoreUserInfo
.
enterpriseId
)
User
.
setUserId
(
User
.
getUserId
()
);
User
.
setToken
(
User
.
getToken
()
);
User
.
setEnterpriseId
(
User
.
getEnterpriseId
()
)
window
.
RCHistory
.
push
(
'/home'
);
window
.
location
.
reload
();
}
}
...
...
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