chore: model file components for updating

This commit is contained in:
jialin
2025-05-27 19:45:24 +08:00
parent 894dd1e353
commit 034a54bf4b
9 changed files with 54 additions and 205 deletions
+7
View File
@@ -252,6 +252,12 @@ const Models: React.FC = () => {
});
}, [fetchData, createModelsChunkRequest, createModelsInstanceChunkRequest]);
const handleOnStop = useCallback((ids: number[]) => {
cacheInsDataListRef.current = cacheInsDataListRef.current.filter(
(item: any) => !ids.includes(item.model_id)
);
}, []);
const handleSearch = useCallback(async () => {
await fetchData();
}, [fetchData]);
@@ -458,6 +464,7 @@ const Models: React.FC = () => {
handleOnToggleExpandAll={createModelsInstanceChunkRequest}
onViewLogs={handleOnViewLogs}
onCancelViewLogs={handleOnCancelViewLogs}
onStop={handleOnStop}
queryParams={queryParams}
loading={dataSource.loading}
loadend={dataSource.loadend}