feat(projects): 1.0 beta

This commit is contained in:
Soybean
2023-11-17 08:45:00 +08:00
parent 1ea4817f6a
commit e918a2c0f5
499 changed files with 15918 additions and 24708 deletions

View File

@ -0,0 +1,10 @@
import axios from 'axios';
import type { CreateAxiosDefaults } from 'axios';
export function createAxios(config?: CreateAxiosDefaults) {
const instance = axios.create(config);
return instance;
}
export default createAxios;

View File

@ -0,0 +1,4 @@
import { createAxios } from './axios';
import { createOfetch } from './ofetch';
export { createAxios, createOfetch };

View File

@ -0,0 +1,10 @@
import { ofetch } from 'ofetch';
import type { FetchOptions } from 'ofetch';
export function createOfetch(options: FetchOptions) {
const request = ofetch.create(options);
return request;
}
export default createOfetch;