This commit is contained in:
parent
3bcfa1382d
commit
c6020ba819
|
|
@ -1,5 +1,6 @@
|
|||
// import { FetchOptions, $fetch } from "ofetch";
|
||||
import ofetch, { FetchOptions } from "ofetch";
|
||||
import ofetch from "ofetch";
|
||||
import type { FetchOptions } from "ofetch"; // 👈 用 `type` 引入类型
|
||||
const $fetch = ofetch;
|
||||
import { RequestCodeEnum, RequestMethodsEnum } from "@/enums/requestEnums";
|
||||
import feedback from "@/utils/feedback";
|
||||
|
|
|
|||
|
|
@ -12,12 +12,13 @@
|
|||
// RequestEventStreamOptions,
|
||||
// } from "ofetch";
|
||||
|
||||
import ofetch, {
|
||||
import ofetch from "ofetch";
|
||||
import type {
|
||||
FetchOptions,
|
||||
FetchResponse,
|
||||
RequestOptions,
|
||||
FileParams,
|
||||
RequestEventStreamOptions,
|
||||
RequestEventStreamOptions
|
||||
} from "ofetch";
|
||||
|
||||
const $fetch: typeof ofetch = ofetch;
|
||||
|
|
|
|||
Loading…
Reference in New Issue