接口配置
var xw = axios.create({baseURL: \'http://127.0.0.1:80\',})
调用
xw.get(\'/api\').then(res=>{ //url:http://127.0.0.1:80/apiconsole.log(res)}).catch(err=>{});
接口配置
var xw = axios.create({baseURL: \'http://127.0.0.1:80\',})
调用
xw.get(\'/api\').then(res=>{ //url:http://127.0.0.1:80/apiconsole.log(res)}).catch(err=>{});