### 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user