Commit 8706c377 authored by Ermolaev Timur's avatar Ermolaev Timur

#20 Дописал функционал сохранения, отправляя данные на бек

parent a04934c2
...@@ -19,6 +19,13 @@ const loadFromLocalStorage = () => { ...@@ -19,6 +19,13 @@ const loadFromLocalStorage = () => {
return undefined; return undefined;
}; };
axios.interceptors.request.use(config=>{
try{
config.headers['Authorization']=store.getState().users.user.token;
} catch(e){
}
return config;
})
const store = configureStore({ const store = configureStore({
reducer: { reducer: {
......
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