Home > front end >  Axios
Axios

Time:09-30

When developing the Vue program, the problem of Axios encapsulation,
May not be very clear the purpose of the packaging, only know after encapsulation will be less dependent on components for Axios plug-in,
I currently use is:
1. Will Axios mount on the prototype chain of vue,
2. Use vuex references within the action,
Want to you help me with a few ideas greatly, let me later in the development of the packaging or continue to use,
PS: I'm not yet encapsulation, hope everybody leave code greatly,

CodePudding user response:

, brush, how do I can't send this content
  •  Tags:  
  • Ajax