Commit fe5b0a3c authored by duanledexianxianxian's avatar duanledexianxianxian 😁

sync code

parent 62dd228b
...@@ -12,4 +12,5 @@ export default { ...@@ -12,4 +12,5 @@ export default {
successCode: 'sys.success', // 后台正常返回错误编码 successCode: 'sys.success', // 后台正常返回错误编码
isThrowError: true, // 默认为true isThrowError: true, // 默认为true
copyright: `${new Date().getFullYear()} KIM3.0技术中台部出品`, copyright: `${new Date().getFullYear()} KIM3.0技术中台部出品`,
homePage: '/dashboard/analysis',
}; };
...@@ -25,6 +25,7 @@ const getRouteAuthority = (path: string, routeData: Route[]) => { ...@@ -25,6 +25,7 @@ const getRouteAuthority = (path: string, routeData: Route[]) => {
} }
} }
}); });
console.log('authorities:', authorities);
return authorities; return authorities;
}; };
......
import { routerRedux } from 'dva/router';
import { login } from '../services'; import { login } from '../services';
import store from '@/utils/store'; import store from '@/utils/store';
import { routerRedux } from 'dva/router';
import { getPageQuery } from '@/utils'; import { getPageQuery } from '@/utils';
import config from '@/config';
const initData = {}; const initData = {};
export default { export default {
...@@ -33,6 +34,8 @@ export default { ...@@ -33,6 +34,8 @@ export default {
window.location.href = redirect; window.location.href = redirect;
return; return;
} }
} else {
redirect = config.homePage;
} }
yield put(routerRedux.replace(redirect || '/')); yield put(routerRedux.replace(redirect || '/'));
} }
......
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