cleanup
This commit is contained in:
@@ -20,7 +20,7 @@ interface ApiOptions {
|
||||
export interface ApiResponse {
|
||||
status: number;
|
||||
message: string;
|
||||
data: Record<string, unknown>;
|
||||
data: unknown;
|
||||
json?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
@@ -84,10 +84,13 @@ export const api = {
|
||||
const fetchOptions: RequestInit = {
|
||||
method: options.method || "GET",
|
||||
headers: options.headers,
|
||||
body: options.body,
|
||||
signal: options.signal || null,
|
||||
};
|
||||
|
||||
if (typeof options.body == "string" && options.body.length > 0) {
|
||||
fetchOptions.body = options.body;
|
||||
}
|
||||
|
||||
const progressStore = useProgressStore();
|
||||
progressStore.start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user