chore: improve image edit

This commit is contained in:
jialin
2025-02-17 13:49:55 +08:00
parent 384a75622f
commit d2a3388058
13 changed files with 214 additions and 86 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export default function useBodyScroll() {
y: 'scroll'
}
});
}, 1000);
}, 500);
}, []);
React.useEffect(() => {
-4
View File
@@ -7,7 +7,6 @@ interface RequestConfig {
handler: (data: any) => any;
beforeReconnect?: () => void;
params?: object;
byLine?: boolean;
watch?: boolean;
contentType?: 'json' | 'text';
}
@@ -16,8 +15,6 @@ const useSetChunkFetch = () => {
const axiosToken = useRef<any>(null);
const requestConfig = useRef<any>({});
const chunkDataRef = useRef<any>([]);
const bufferCacheRef = useRef<any>('');
const readTextEventStreamData = async (
reader: ReadableStreamDefaultReader<Uint8Array>,
decoder: TextDecoder,
@@ -74,7 +71,6 @@ const useSetChunkFetch = () => {
url,
handler,
watch,
byLine = false,
params = {}
}: RequestConfig) => {
axiosToken.current?.abort?.();