Request Adapter
We provide a variety of request adapters.
Mock data
This mock plugin is an alova request adapter. Unlike the traditional proxy approach, you can control the usage scope of mock data—globally, per group of interfaces, or even enabling/disabling a single interface. This is very useful in real business scenarios: each iteration adds or modifies a set of interfaces, and you usually want previous features to keep using the already-developed interfaces while new or modified ones use the mock data. In that case, each developer can group the interfaces of their iteration and toggle them on or off.
Fetch Adapter
The fetch adapter is a predefined request adapter for alova, through which you can use all the functions of the fetch API.
XMLHttpRequest Adapter
Install
axios adapter
Install
Uniapp Adapter
This plugin only supports Vue 3 version of uniapp application.
Taro Adapter
This plugin only supports the taro application of react 16.8+, Vue 3 version.