diff --git a/web/src/components/common/ui/JSONEditor.jsx b/web/src/components/common/ui/JSONEditor.jsx index d8975387..21530db3 100644 --- a/web/src/components/common/ui/JSONEditor.jsx +++ b/web/src/components/common/ui/JSONEditor.jsx @@ -60,6 +60,7 @@ const JSONEditor = ({ editorType = 'keyValue', rules = [], formApi = null, + renderStringValueSuffix, ...props }) => { const { t } = useTranslation(); @@ -335,7 +336,7 @@ const JSONEditor = ({ ]); // 渲染值输入控件(支持嵌套) - const renderValueInput = (pairId, value) => { + const renderValueInput = (pairId, pairKey, value) => { const valueType = typeof value; if (valueType === 'boolean') { @@ -387,6 +388,7 @@ const JSONEditor = ({ { let convertedValue = newValue; if (newValue === 'true') convertedValue = true; @@ -470,7 +472,9 @@ const JSONEditor = ({ )} -