Need Vue expert developer
Budget: $8 – $15 USD
Axios request util:
build a util to make API calls, it should support:
fast switch between mock (local data) / real (axios) call
accept relative api url such as /user-profile, and store the API root url (so we can easily update it)
Append header token automatically and detect calls when token is not present / expired
All API calls should use this util, no more direct axios calls
Reference code: https://github.com/PanJiaChen/vue-element-admin/blob/master/src/utils/request.js
build a util to make API calls, it should support:
fast switch between mock (local data) / real (axios) call
accept relative api url such as /user-profile, and store the API root url (so we can easily update it)
Append header token automatically and detect calls when token is not present / expired
All API calls should use this util, no more direct axios calls
Reference code: https://github.com/PanJiaChen/vue-element-admin/blob/master/src/utils/request.js