diff --git a/web/src/components/table/channels/modals/EditChannelModal.jsx b/web/src/components/table/channels/modals/EditChannelModal.jsx index b86aade5..360aedf2 100644 --- a/web/src/components/table/channels/modals/EditChannelModal.jsx +++ b/web/src/components/table/channels/modals/EditChannelModal.jsx @@ -587,6 +587,8 @@ const EditChannelModal = (props) => { if (formApiRef.current) { formApiRef.current.setValue('key_mode', undefined); } + // 重置本地输入,避免下次打开残留上一次的 JSON 字段值 + setInputs(getInitValues()); } }, [props.visible, channelId]); @@ -1257,6 +1259,7 @@ const EditChannelModal = (props) => { {inputs.type === 41 && ( { /> { />