|
@ -209,7 +209,6 @@ const LayoutContainer = props => { |
|
|
RouteRequest.get(RouteTable.apiRoot).then(res => { |
|
|
RouteRequest.get(RouteTable.apiRoot).then(res => { |
|
|
let token = Cookie.get('pepToken', { domain: res.domain }); |
|
|
let token = Cookie.get('pepToken', { domain: res.domain }); |
|
|
dispatch(login({ token })).then(res => { |
|
|
dispatch(login({ token })).then(res => { |
|
|
console.log(res); |
|
|
|
|
|
if (res.type == 'LOGIN_SUCCESS') { |
|
|
if (res.type == 'LOGIN_SUCCESS') { |
|
|
const data = res.payload?.user || {} |
|
|
const data = res.payload?.user || {} |
|
|
history.push('/businessManagement/pmReport/reserveItemsReporting') |
|
|
history.push('/businessManagement/pmReport/reserveItemsReporting') |
|
|