This commit is contained in:
StyleZhang 2024-03-05 12:40:56 +08:00
parent 0367a2148a
commit 04d54c0319
2 changed files with 2 additions and 12 deletions

View File

@ -4,19 +4,8 @@ import { memo } from 'react'
import Workflow from '@/app/components/workflow'
const Page = () => {
const nodes = [
{
id: '1',
type: 'custom',
position: { x: 0, y: 0 },
data: { type: 'start' },
},
]
return (
<Workflow
nodes={nodes}
edges={[]}
/>
<Workflow />
)
}
export default memo(Page)

View File

@ -118,6 +118,7 @@ const WorkflowWrap: FC<WorkflowProps> = ({
const startNode = {
id: `${Date.now()}`,
type: 'custom',
data: NodeInitialData.start,
position: {
x: 100,