chore: add watch for worker and gpu updating

This commit is contained in:
jialin
2025-05-26 16:17:17 +08:00
parent 9efacefba3
commit 4b4343a9fd
8 changed files with 38 additions and 15 deletions
@@ -478,7 +478,7 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
return (
<TooltipOverlayScroller
toolTipProps={{
trigger: 'click',
trigger: 'hover',
overlayInnerStyle: {
width: 'max-content',
maxWidth: '520px',
@@ -475,6 +475,9 @@ 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') {
@@ -490,6 +493,9 @@ const Models: React.FC<ModelsProps> = ({
name: row.name,
async onOk() {
await handleStopModel(row);
setTimeout(() => {
handleSearch?.();
}, 150);
}
});
}