diff --git a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx index 4e6f0f3faf..6c30a6e284 100644 --- a/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx +++ b/web/app/components/workflow/nodes/http/components/key-value/key-value-edit/input-item.tsx @@ -4,6 +4,8 @@ import React, { useCallback } from 'react' import { useBoolean } from 'ahooks' import cn from 'classnames' import RemoveButton from '@/app/components/workflow/nodes/_base/components/remove-button' +import SupportVarInput from '@/app/components/workflow/nodes/_base/components/support-var-input' + type Props = { className?: string value: string @@ -57,7 +59,15 @@ const InputItem: FC = ({ className="pl-0.5 w-full h-[18px] leading-[18px]" onClick={setIsEditTrue} > -
{hasValue ? value : placeholder}
+ {!hasValue &&
{placeholder}
} + {hasValue && ( + + )} {hasRemove && !isEdit && (