(appInfo)
| 433 | * @return {Object} |
| 434 | */ |
| 435 | export const getAppConfig = (appInfo) => { |
| 436 | if (!appInfo?.flowGraph?.appearance) { |
| 437 | return {}; |
| 438 | } |
| 439 | const graphOperator = createGraphOperator(JSON.stringify(appInfo.flowGraph.appearance)); |
| 440 | const nodeList = graphOperator.getShapeIdsByType('startNodeStart'); |
| 441 | return graphOperator.getConfig(nodeList).appConfig; |
| 442 | } |
| 443 | |
| 444 | /** |
| 445 | * 生成随机用户名 |
no test coverage detected