GO

Size: a a a
GO
ДК
GO
(state) => state.someThingYouNeed
ZS
axios.interceptors.request.use(function (config) {
const itemId = this.props.city.item.id
config.headers.city = itemId;
return config;
})
S
axios.interceptors.request.use(function (config) {
const itemId = this.props.city.item.id
config.headers.city = itemId;
return config;
})
ZS
export const request = axios.create({
headers: {
'CITY': localStorage.getItem('CITY')
},
baseURL: process.env.REACT_APP_API_URL
})
ZS
SS
ZS
PG
S
GO
UT
S
S
S
S
S
S
S