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
Upon checking the API, it returns promise then when I tried to call api it does not work, like there are no network listed on console
after injecting, I tried to console the axios variable but got this response, dont know what is this means
import{defineComponent,inject}from'vue'...setup(){constaxios=inject('axios')...axios.get(api)// not working, no logs on the network}
Upon checking the API, it returns promise then when I tried to call api it does not work, like there are no network listed on console
![image](https://user-images.githubusercontent.com/68372409/142744972-485390ee-c7e1-4764-9b00-ce7591f31d57.png)
after injecting, I tried to console the axios variable but got this response, dont know what is this means
Axios configuration
Got it working, but have to remove global configuration,
Now my question is how to intialize global config?
axios.defaults.baseURL = 'api/v1'
Thanks for this post #2
The text was updated successfully, but these errors were encountered: