kun-galgame-vue/src/utils/request.ts

10 lines
177 B
TypeScript
Raw Normal View History

// request.ts
export async function request(
url: string,
options: RequestInit = {}
): Promise<Response> {
const response = await fetch(url, options)
return response
}