();
return (
@@ -36,7 +34,7 @@ export const WorkflowPage = () => {
schema={{
type: 'void',
properties: {
- provider: {
+ [`provider_${params.id}`]: {
type: 'void',
'x-decorator': 'ResourceActionProvider',
'x-decorator-props': {
@@ -47,14 +45,14 @@ export const WorkflowPage = () => {
action: 'get',
params: {
filter: params,
- appends: ['nodes']
- }
- }
+ appends: ['nodes'],
+ },
+ },
},
properties: {
trigger: {
type: 'void',
- 'x-component': 'TriggerConfig'
+ 'x-component': 'TriggerConfig',
},
nodes: {
type: 'void',
@@ -70,7 +68,7 @@ export const WorkflowPage = () => {
uiSchema: {
title: '节点名称',
type: 'string',
- 'x-component': 'Input'
+ 'x-component': 'Input',
},
},
{
@@ -82,23 +80,23 @@ export const WorkflowPage = () => {
type: 'string',
'x-component': 'Select',
required: true,
- }
- }
- ]
- }
+ },
+ },
+ ],
+ },
},
'x-component': 'WorkflowCanvas',
'x-component-props': {
// nodes
- }
- }
- }
+ },
+ },
+ },
},
- }
+ },
}}
components={{
TriggerConfig,
- WorkflowCanvas
+ WorkflowCanvas,
}}
/>
diff --git a/packages/core/client/src/workflow/WorkflowRouteProvider.tsx b/packages/core/client/src/workflow/WorkflowRouteProvider.tsx
index 83a4ecb1f..e82bab153 100644
--- a/packages/core/client/src/workflow/WorkflowRouteProvider.tsx
+++ b/packages/core/client/src/workflow/WorkflowRouteProvider.tsx
@@ -3,12 +3,10 @@ import { RouteSwitchContext } from '../route-switch';
export const WorkflowRouteProvider = (props) => {
const { routes, ...others } = useContext(RouteSwitchContext);
- routes[1].routes.unshift(
- {
- type: 'route',
- path: '/admin/workflows/:id',
- component: 'WorkflowPage',
- },
- );
+ routes[1].routes.unshift({
+ type: 'route',
+ path: '/admin/plugins/workflows/:id',
+ component: 'WorkflowPage',
+ });
return {props.children};
};
diff --git a/packages/plugins/ui-routes-storage/src/index.ts b/packages/plugins/ui-routes-storage/src/index.ts
index fd4bc4e17..096d9263f 100644
--- a/packages/plugins/ui-routes-storage/src/index.ts
+++ b/packages/plugins/ui-routes-storage/src/index.ts
@@ -39,11 +39,11 @@ export class UiRoutesStoragePlugin extends Plugin {
title: 'NocoBase Admin',
routes: [
// test...
- {
- type: 'route',
- path: '/admin/workflows/:id',
- component: 'WorkflowPage',
- },
+ // {
+ // type: 'route',
+ // path: '/admin/workflows/:id',
+ // component: 'WorkflowPage',
+ // },
// {
// type: 'route',
// path: '/admin/block-templates/:key',