at the beginning of the project, axios was introduced into main.js, and then axios is hung on the instance through Vue.prototype.$ajax = axios;
, and the request is sent by calling this.$ajax
in each file.
now the project is getting bigger and bigger, and many interfaces are common, so the method in each file is not universal, so how to manage all the interfaces in a unified way, and can be introduced in each file as needed? Thank you?