1👍
After importing axios you can set some defaults, one of them being a base url:
import axios from 'axios'
axios.defaults.baseURL = 'http://localhost:8080/vuejs-demo/rest';
- [Vuejs]-Displaying a selected object as string in vuejs
- [Vuejs]-Vue js only loops through one element in firebase database
Source:stackexchange.com