) {
const yes = get(data, 'form.yes');
const no = get(data, 'form.no');
+ const replaceIdWithName = useReplaceIdWithName();
+
return (
) {
Yes
- {yes}
+ {replaceIdWithName(yes)}
No
- {no}
+ {replaceIdWithName(no)}
diff --git a/web/src/pages/flow/header/index.less b/web/src/pages/flow/header/index.less
index 5d637286e76..1d78c87d29f 100644
--- a/web/src/pages/flow/header/index.less
+++ b/web/src/pages/flow/header/index.less
@@ -1,3 +1,3 @@
.flowHeader {
- padding: 0 20px;
+ padding: 10px 20px;
}
diff --git a/web/src/pages/flow/header/index.tsx b/web/src/pages/flow/header/index.tsx
index e03b03a7722..70ef319ea80 100644
--- a/web/src/pages/flow/header/index.tsx
+++ b/web/src/pages/flow/header/index.tsx
@@ -5,7 +5,11 @@ import { ArrowLeftOutlined } from '@ant-design/icons';
import { Button, Flex, Space } from 'antd';
import { Link, useParams } from 'umi';
import FlowIdModal from '../flow-id-modal';
-import { useSaveGraph, useSaveGraphBeforeOpeningDebugDrawer } from '../hooks';
+import {
+ useSaveGraph,
+ useSaveGraphBeforeOpeningDebugDrawer,
+ useWatchAgentChange,
+} from '../hooks';
import styles from './index.less';
interface IProps {
@@ -20,10 +24,11 @@ const FlowHeader = ({ showChatDrawer }: IProps) => {
const {
visible: overviewVisible,
hideModal: hideOverviewModal,
- showModal: showOverviewModal,
+ // showModal: showOverviewModal,
} = useSetModalState();
const { visible, hideModal, showModal } = useSetModalState();
const { id } = useParams();
+ const time = useWatchAgentChange();
return (
<>
@@ -37,7 +42,10 @@ const FlowHeader = ({ showChatDrawer }: IProps) => {
- {data.title}
+
+ {data.title}
+ 已自动保存 {time}
+