我想在我的组件下火的作用。这是一个演示组件和不需要终极版察觉。路由器的实现是通过使用react-router-redux完成的。 main.js: let store = createStore(rootReducer)
const history = syncHistoryWithStore(hashHistory, store)
class RenderClass extends Co
我正在检查每个axios请求是否存在非公用路径的标头中的令牌。如果未找到令牌,我想让用户登录页面。 但这是在reactjs应用程序内。有什么办法可以做到这一点? axios.interceptors.request.use(function (config) {
//If the header does not contain the token and the url not public,