Closed nichujie closed 3 years ago
Refer to this boilerplate to setup the axios of the project: https://github.com/petervmeijgaard/vue-2-boilerplate
Notes:
// Bind Axios to Vue. Vue.$http = Axios; Object.defineProperty(Vue.prototype, '$http', { get() { return Axios; }, });
You may abandon old src/utils/providers.ts
src/utils/providers.ts
Refer to this boilerplate to setup the axios of the project: https://github.com/petervmeijgaard/vue-2-boilerplate
Notes: