我想在我的組件下火的作用。這是一個演示組件和不需要終極版察覺。路由器的實現是通過使用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,