Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
58532e72
Commit
58532e72
authored
Dec 30, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
0fdb8834
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
index.html
index.html
+1
-1
headquarters.js
src/models/headquarters.js
+3
-0
SjdIndex.js
src/pages/SjdIndex.js
+1
-0
No files found.
index.html
View file @
58532e72
...
...
@@ -18,6 +18,6 @@
</head>
<body>
<div
id=
"root"
></div>
<script
src=
"dist/main.js?157767
6076232
"
charset=
"utf-8"
></script>
<script
src=
"dist/main.js?157767
7393510
"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
src/models/headquarters.js
View file @
58532e72
...
...
@@ -8,6 +8,7 @@ import {
showWeekDay
,
showMonthDay
,
}
from
'../utils/index'
;
import
rootMap
from
'../common/constants'
;
import
errorcode
from
'../common/errorcode'
;
import
*
as
headquartersAjax
from
'../services/headquarters'
;
export
default
{
...
...
@@ -203,12 +204,14 @@ export default {
const
{
school
}
=
payload
;
LocalStorage
.
setItem
(
'sid'
,
school
.
id
);
LocalStorage
.
setItem
(
'role'
,
5
);
LocalStorage
.
setItem
(
'rootMap'
,
rootMap
.
emptyRootMap
);
yield
put
({
type
:
'webapp/updateState'
,
payload
:
{
role
:
5
,
},
});
console
.
log
(
school
,
'sssss'
);
yield
put
(
routerRedux
.
push
({
pathname
:
'/sjd/indexstaic'
,
}));
...
...
src/pages/SjdIndex.js
View file @
58532e72
...
...
@@ -179,6 +179,7 @@ class SjdIndex extends React.Component {
localStorage
.
clear
();
mainDom
=
redirectLogin
;
}
else
{
console
.
log
(
role
,
rootMap
,
sid
,
'dasdasdas'
);
if
(
!
role
||
!
rootMap
||
!
sid
)
{
mainDom
=
redirectSchoolList
;
}
...
...
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