imcvampire / vue-axios

A small wrapper for integrating axios to Vuejs
https://www.npmjs.com/package/vue-axios
MIT License
2.01k stars 183 forks source link

Multiple axios instances not support? #157

Open filbert-lee opened 1 year ago

filbert-lee commented 1 year ago

vue: 3.2.47 vue-axios: 3.5.2 axios: 1.3.4

image image

I think you should edit the types file

image

imcvampire commented 1 year ago

I believe that it isn't supported by type, not by the plugin!

NoeLiYa commented 4 months ago

I believe that it isn't supported by type, not by the plugin!

Double-wrapped axios returns the type of AxiosInstance, and AxiosStatic inherits from AxiosInstance, so can't your plugin support both types? Or is it okay if I force AxiosInstance to switch to AxiosStatic? image image

imcvampire commented 4 months ago

@NoeLiYa I'm not sure. Can you send a PR for that?