最終更新:2018-04-16 (月) 11:09:37 (2173d)
axios.create
Top / axios.create
You can create a new instance of axios with a custom config.
const instance = axios.create({ baseURL: 'https://some-domain.com/api/', timeout: 1000, headers: {'X-Custom-Header': 'foobar'} });