fix: update allChildren after stop or start

This commit is contained in:
jialin
2025-05-28 14:41:35 +08:00
parent 034a54bf4b
commit f53fe042a9
7 changed files with 10 additions and 24 deletions
@@ -478,9 +478,6 @@ const Models: React.FC<ModelsProps> = ({
await handleStartModel(row);
message.success(intl.formatMessage({ id: 'common.message.success' }));
updateExpandedRowKeys([row.id, ...expandedRowKeys]);
setTimeout(() => {
handleSearch?.();
}, 150);
}
if (val === 'api') {
@@ -496,9 +493,6 @@ const Models: React.FC<ModelsProps> = ({
name: row.name,
async onOk() {
await handleStopModel(row);
setTimeout(() => {
handleSearch?.();
}, 150);
}
});
}