You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varaxios=require("axios")functionrequestBase(method,url,config){constinstance=axios.create({baseURL: 'https://626a153e737b438c1c41c57d.mockapi.io',
method,
url,// [url] put here not work});//url in axios.create , request config is undefined , there is no url,not workinstance.request(config).then(response=>{console.log('response: ',response.data);}).catch(error=>{console.log('error: ',error);});}//not work,put url in axios.createrequestBase('get','/users');//it workrequestBase('get','','/users');requestBase('get','',{url:'/users'});
Environment
Axios Version [ 0.27.2 ]
The text was updated successfully, but these errors were encountered:
Describe the bug
put url in axios.create config,and instance.request config not hava url,not work
To Reproduce
https://runkit.com/fsafsfsdfsd/626a182eb041210008b9e157
Environment
The text was updated successfully, but these errors were encountered: