mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
11 lines
225 B
TypeScript
11 lines
225 B
TypeScript
import { ofetch } from 'ofetch';
|
|
import type { FetchOptions } from 'ofetch';
|
|
|
|
export function createOfetch(options: FetchOptions) {
|
|
const request = ofetch.create(options);
|
|
|
|
return request;
|
|
}
|
|
|
|
export default createOfetch;
|