vue-axios icon indicating copy to clipboard operation
vue-axios copied to clipboard

Multiple axios instances not support?

Open filbert-lee opened this issue 1 year ago • 3 comments

vue: 3.2.47 vue-axios: 3.5.2 axios: 1.3.4

image image

I think you should edit the types file

image

filbert-lee avatar Mar 21 '23 10:03 filbert-lee

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

imcvampire avatar Mar 22 '23 14:03 imcvampire

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

NoeLiYa avatar Jun 02 '24 10:06 NoeLiYa

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

imcvampire avatar Jun 02 '24 13:06 imcvampire