feat: create flow from dsl template #918 (#1351)

### What problem does this PR solve?

feat: create flow from  dsl template #918

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-03 14:42:48 +08:00
committed by GitHub
parent 477a52620f
commit 65e59862e4
3 changed files with 185 additions and 184 deletions

View File

@@ -9,8 +9,8 @@ import { useNavigate } from 'umi';
// import { dsl } from '../mock';
// import headhunterZhComponents from '../../../../../graph/test/dsl_examples/headhunter_zh.json';
// import dslJson from '../../../../../dls.json';
import customerServiceBase from '../../../../../graph/test/dsl_examples/customer_service.json';
import customerService from '../customer_service.json';
// import customerServiceBase from '../../../../../graph/test/dsl_examples/customer_service.json';
// import customerService from '../customer_service.json';
export const useFetchDataOnMount = () => {
const { data, loading } = useFetchFlowList();
@@ -39,8 +39,9 @@ export const useSaveFlow = () => {
// }
const ret = await setFlow({
title,
dsl,
// dsl: dslJson,
dsl: { ...customerServiceBase, ...customerService },
// dsl: { ...customerServiceBase, graph: customerService },
});
if (ret?.retcode === 0) {