Fix first login bug for dashboard
When login dashboard at first time, token will be null.
@@ -47,6 +47,8 @@ export default {
}
}
yield put(routerRedux.replace(redirect || '/'));
+ // TODO: find better method to reload token for request, reload page to obtain the token from storage
+ window.location.reload();
}
},
