mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
feat: run flow (#1076)
### What problem does this PR solve? feat: run flow #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
import { Button, Flex } from 'antd';
|
||||
|
||||
import { useSaveGraph } from '../hooks';
|
||||
import { useRunGraph, useSaveGraph } from '../hooks';
|
||||
import styles from './index.less';
|
||||
|
||||
const FlowHeader = () => {
|
||||
const { saveGraph } = useSaveGraph();
|
||||
const { runGraph } = useRunGraph();
|
||||
|
||||
return (
|
||||
<Flex
|
||||
@ -13,7 +14,7 @@ const FlowHeader = () => {
|
||||
gap={'large'}
|
||||
className={styles.flowHeader}
|
||||
>
|
||||
<Button>
|
||||
<Button onClick={runGraph}>
|
||||
<b>Debug</b>
|
||||
</Button>
|
||||
<Button type="primary" onClick={saveGraph}>
|
||||
|
||||
Reference in New Issue
Block a user