From 05ad8c1223281aa3c87313a6631ae4e3b1489651 Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Mon, 25 Aug 2025 11:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=8E=20chore(EditChannelModal.jsx):=20F?= =?UTF-8?q?ormat=20code=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../channels/modals/EditChannelModal.jsx | 45 +++++++++---------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/web/src/components/table/channels/modals/EditChannelModal.jsx b/web/src/components/table/channels/modals/EditChannelModal.jsx index 83590633..de84da1e 100644 --- a/web/src/components/table/channels/modals/EditChannelModal.jsx +++ b/web/src/components/table/channels/modals/EditChannelModal.jsx @@ -1725,31 +1725,30 @@ const EditChannelModal = (props) => { /> handleInputChange('header_override', value)} - extraText={ -
- handleInputChange('header_override', JSON.stringify({ - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0" - }, null, 2))} - > - {t('格式模板')} - -
- } - showClear + field='header_override' + label={t('请求头覆盖')} + placeholder={ + t('此项可选,用于覆盖请求头参数') + + '\n' + t('格式示例:') + + '\n{\n "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0"\n}' + } + autosize + onChange={(value) => handleInputChange('header_override', value)} + extraText={ +
+ handleInputChange('header_override', JSON.stringify({ + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0" + }, null, 2))} + > + {t('格式模板')} + +
+ } + showClear /> -