From f11582bc64eced1a159fffee498650a1983ed45a Mon Sep 17 00:00:00 2001 From: zhaowei Date: Thu, 5 Jun 2025 11:19:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E9=9B=86=E5=92=8C?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=9B=9E=E9=80=80=E6=97=B6=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-ui/src/pages/Dataset/components/ResourcePage/index.tsx | 2 +- react-ui/src/pages/Experiment/Info/index.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/react-ui/src/pages/Dataset/components/ResourcePage/index.tsx b/react-ui/src/pages/Dataset/components/ResourcePage/index.tsx index c21984ac..4714a4f0 100644 --- a/react-ui/src/pages/Dataset/components/ResourcePage/index.tsx +++ b/react-ui/src/pages/Dataset/components/ResourcePage/index.tsx @@ -98,7 +98,7 @@ function ResourcePage({ resourceType }: ResourcePageProps) { dataType={activeType} dataTag={activeTag} initialSearchText={cacheState?.searchText} - initialPagination={cacheState?.initialPagination} + initialPagination={cacheState?.pagination} setCacheState={setCacheState} > diff --git a/react-ui/src/pages/Experiment/Info/index.jsx b/react-ui/src/pages/Experiment/Info/index.jsx index 84b0d2ef..56f7e979 100644 --- a/react-ui/src/pages/Experiment/Info/index.jsx +++ b/react-ui/src/pages/Experiment/Info/index.jsx @@ -138,9 +138,9 @@ function ExperimentText() { openPropsDrawer(); } } else if (status === ExperimentStatus.Running) { - // 如果状态是 Running,打开第一个运行中的节点,如果没有运行中的节点,则打开第一个节点 + // 如果状态是 Running,打开第一个 Running 或者 pending 的节点,如果没有,则打开第一个节点 const node = - workflow.nodes.find((item) => item.experimentStatus === ExperimentStatus.Running) ?? + workflow.nodes.find((item) => item.experimentStatus === ExperimentStatus.Running || item.experimentStatus === ExperimentStatus.Pending) ?? workflow.nodes[0]; if (node) { setExperimentNodeData(node);