fix: api watch data

This commit is contained in:
jialin
2024-06-29 23:24:12 +08:00
parent afb2a13b80
commit 9f4f28edaf
8 changed files with 48 additions and 12 deletions
+3 -7
View File
@@ -372,19 +372,15 @@ const Models: React.FC = () => {
useEffect(() => {
fetchData();
// createModelsDataByFetch();
createModelEvent();
createModelsChunkRequest();
setTimeout(() => {
createModelsChunkRequest();
}, 1000);
return () => {
chunkRequedtRef.current?.current?.cancel?.();
};
}, [queryParams]);
useEffect(() => {
// watch models list
}, [queryParams]);
const renderChildren = (list: any) => {
return (
<Space size={16} direction="vertical" style={{ width: '100%' }}>