fix: add worker button do not work

This commit is contained in:
jialin
2025-12-18 10:56:45 +08:00
parent e4bd753355
commit b524587a9a
10 changed files with 62 additions and 26 deletions
@@ -72,9 +72,11 @@ const ViewLogsModal: React.FC<ViewModalProps> = (props) => {
if (!props.id) return;
if (open) {
requestRef.current?.current?.cancel?.();
requestRef.current = setChunkRequest({
setChunkRequest({
url: `${MODELS_API}/${props.modelId}/instances`,
handler: updateHandler
}).then((res) => {
requestRef.current = res;
});
} else {
logsViewerRef.current?.abort();