mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
@@ -183,7 +183,7 @@ function Reference({
|
||||
return (
|
||||
<>
|
||||
<Flex alignItems={'center'} mb={1}>
|
||||
<FormLabel required={inputChildren.required}>{inputChildren.label}</FormLabel>
|
||||
<FormLabel required={inputChildren.required}>{t(inputChildren.label as any)}</FormLabel>
|
||||
{/* value */}
|
||||
<ValueTypeLabel valueType={inputChildren.valueType} valueDesc={inputChildren.valueDesc} />
|
||||
|
||||
|
@@ -56,7 +56,7 @@ const JsonEditor = ({ inputs = [], item, nodeId }: RenderInputProps) => {
|
||||
<JSONEditor
|
||||
bg={'white'}
|
||||
borderRadius={'sm'}
|
||||
placeholder={item.placeholder}
|
||||
placeholder={t(item.placeholder as any)}
|
||||
resize
|
||||
value={value}
|
||||
onChange={(e) => {
|
||||
@@ -65,7 +65,7 @@ const JsonEditor = ({ inputs = [], item, nodeId }: RenderInputProps) => {
|
||||
variables={variables}
|
||||
/>
|
||||
);
|
||||
}, [item.placeholder, update, value, variables]);
|
||||
}, [item.placeholder, t, update, value, variables]);
|
||||
|
||||
return Render;
|
||||
};
|
||||
|
Reference in New Issue
Block a user