Commit 9978bbdc authored by suhuiguang's avatar suhuiguang

1.去掉token已失效

parent a7daf3f2
......@@ -44,15 +44,11 @@ class App extends Component {
componentWillMount() {
let token = LocationParam.getLocationParamByName('token');
if (!token) {
AmosAlert.error('警告', 'toke已失效!');
}else{
if (token) {
lsTool.write(SysConsts.token, token);
lsTool.write('token', token);
}
getSystemAllMenu().then(
menus => {
let systemMuens = this.filterSystemMenus(menus);
let routeMenus = [];
......@@ -68,26 +64,12 @@ class App extends Component {
}
);
// opMenusAction().then(
// menus => {
// this.setState({ rootRoutes: rootRoutes(menus), visible: true });
// },
// err => {
// AmosAlert.error('警告', err || '获取初始化菜单失败!');
// }
// );
}
filterSystemMenus = (menus = []) => {
return menus.filter(menu => menu.permissionType === 'MENU');
}
onUpdate = () => {
RProgress.done();
window.scrollTo(0, 0);
};
}
filterSystemMenus = (menus = []) => {
return menus.filter(menu => menu.permissionType === 'MENU');
......
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