Skip to content

createFetch

描述

创建一个预配置的 fetch 实例。

示例

ts
import { createFetch } from '@base-web-kits/base-tools-vue';

const useMyFetch = createFetch({
  baseUrl: 'https://api.example.com',
});
```来源

[VueUse](https://vueuse.org/functions/createFetch/)