fix(web): output node

This commit is contained in:
zhaoying
2026-04-21 18:42:41 +08:00
parent 8b3e3c8044
commit 42ebba9090

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-03 15:39:59 * @Date: 2026-02-03 15:39:59
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-04-20 15:42:36 * @Last Modified time: 2026-04-21 18:36:42
*/ */
import { type FC, useEffect, useState, useMemo } from "react"; import { type FC, useEffect, useState, useMemo } from "react";
import clsx from 'clsx' import clsx from 'clsx'
@@ -807,14 +807,13 @@ const Properties: FC<PropertiesProps> = ({
) )
} }
if (config.type === 'mappingList') { if (config.type === 'mappingList') {
return <Form.Item name={key}> return <MappingList
<MappingList key={key}
label={t(`workflow.config.${selectedNode?.data?.type}.${key}`)} label={t(`workflow.config.${selectedNode?.data?.type}.${key}`)}
name={key} name={key}
options={variableList} options={variableList}
isNeedType={config.isNeedType as boolean} isNeedType={config.isNeedType as boolean}
/> />
</Form.Item>
} }
if (key === 'vision_input' && !values?.vision) { if (key === 'vision_input' && !values?.vision) {