Commit 58532e72 authored by wangxuelai's avatar wangxuelai

''

parent 0fdb8834
......@@ -18,6 +18,6 @@
</head>
<body>
<div id="root"></div>
<script src="dist/main.js?1577676076232" charset="utf-8"></script>
<script src="dist/main.js?1577677393510" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
......@@ -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',
}));
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment