Commit 04d54c03 authored by StyleZhang's avatar StyleZhang

fix

parent 0367a214
...@@ -4,19 +4,8 @@ import { memo } from 'react' ...@@ -4,19 +4,8 @@ import { memo } from 'react'
import Workflow from '@/app/components/workflow' import Workflow from '@/app/components/workflow'
const Page = () => { const Page = () => {
const nodes = [
{
id: '1',
type: 'custom',
position: { x: 0, y: 0 },
data: { type: 'start' },
},
]
return ( return (
<Workflow <Workflow />
nodes={nodes}
edges={[]}
/>
) )
} }
export default memo(Page) export default memo(Page)
...@@ -118,6 +118,7 @@ const WorkflowWrap: FC<WorkflowProps> = ({ ...@@ -118,6 +118,7 @@ const WorkflowWrap: FC<WorkflowProps> = ({
const startNode = { const startNode = {
id: `${Date.now()}`, id: `${Date.now()}`,
type: 'custom',
data: NodeInitialData.start, data: NodeInitialData.start,
position: { position: {
x: 100, x: 100,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment