1
This commit is contained in:
parent
cfaaf4d656
commit
69d79bc185
@ -3,6 +3,7 @@ import {PageContainer} from '@ant-design/pro-layout';
|
|||||||
import {Button, Card, Form, Input, InputNumber, Select, Switch, Space, Menu, Tabs, Row, Col, message, ColorPicker} from 'antd';
|
import {Button, Card, Form, Input, InputNumber, Select, Switch, Space, Menu, Tabs, Row, Col, message, ColorPicker} from 'antd';
|
||||||
import type {NodeDesignDataResponse} from './types';
|
import type {NodeDesignDataResponse} from './types';
|
||||||
import * as service from './service';
|
import * as service from './service';
|
||||||
|
import {useParams} from 'react-router-dom';
|
||||||
|
|
||||||
// Tab 配置
|
// Tab 配置
|
||||||
const TAB_CONFIG = [
|
const TAB_CONFIG = [
|
||||||
|
|||||||
@ -79,9 +79,7 @@ const NodeDesignList: React.FC = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => navigate(`/workflow/node-design/edit/${record.nodeCode}`, {
|
onClick={() => navigate(`/workflow/node-design/design/${record.id}`)}
|
||||||
state: { nodeData: record }
|
|
||||||
})}
|
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -171,7 +171,7 @@ const router = createBrowserRouter([
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'edit/:nodeCode',
|
path: 'design/:id',
|
||||||
element: (
|
element: (
|
||||||
<Suspense fallback={<LoadingComponent/>}>
|
<Suspense fallback={<LoadingComponent/>}>
|
||||||
<NodeDesignForm/>
|
<NodeDesignForm/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user