style: create images ux

This commit is contained in:
jialin
2024-11-22 10:00:34 +08:00
parent dde937f460
commit 67febd3e25
14 changed files with 150 additions and 73 deletions
+3 -1
View File
@@ -32,6 +32,7 @@ export const fetchChunkedData = async (params: {
params?: any;
signal?: AbortSignal;
method?: string;
headers?: any;
}) => {
const method = params.method || 'POST';
let url = params.url;
@@ -43,7 +44,8 @@ export const fetchChunkedData = async (params: {
body: method === 'POST' ? JSON.stringify(params.data) : null,
signal: params.signal,
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
...params.headers
}
});
if (!response.ok) {