(curAppInfo: any)
| 412 | * @return {Array} 对话多输入配置 |
| 413 | */ |
| 414 | export const getConfiguration = (curAppInfo: any) => { |
| 415 | if (!curAppInfo?.flowGraph?.appearance) { |
| 416 | return []; |
| 417 | } |
| 418 | const graphOperator = createGraphOperator(JSON.stringify(curAppInfo.flowGraph.appearance)); |
| 419 | const paramsList = graphOperator.getStartNodeInputParams() || []; |
| 420 | if (paramsList?.length !== 1) { |
| 421 | Message({ type: 'error', content: i18n.t('startingNodeTip') }); |
| 422 | return []; |
| 423 | } |
| 424 | const inputData = find(paramsList[0], ['name', 'input']); |
| 425 | const inputList = inputData?.value || []; |
| 426 | return filter(inputList, (input) => input.name !== 'Question' && input.isVisible) || []; |
| 427 | }; |
| 428 | |
| 429 | /** |
| 430 | * 获取应用graph里开始节点的appConfig配置 |
no test coverage detected