From e9975df35cb8993acbd6d0cf76e1401112796f76 Mon Sep 17 00:00:00 2001 From: fengsilin Date: Fri, 21 Aug 2026 11:11:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E7=B4=A0=E6=9D=90=E5=87=AD?= =?UTF-8?q?=E6=8D=AE=E8=BE=93=E5=85=A5=E6=A1=86=E5=A2=9E=E5=8A=A0=E5=B7=B2?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8D=A0=E4=BD=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 编辑 54/61 渠道时 AccessKey/SecretKey 输入框此前完全留空,容易误以为 凭据未保存。已配置时占位符显示"已配置,留空保持不变",未配置时显示 "请输入 AccessKey/SecretKey"。后端仍不回传真实密钥,仅依据 asset_credential_configured 状态区分占位符文案。顺带补齐凭据卡片 已有文案的英文翻译。 --- .../table/channels/modals/EditChannelModal.jsx | 10 ++++++++++ web/src/i18n/locales/en.json | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/web/src/components/table/channels/modals/EditChannelModal.jsx b/web/src/components/table/channels/modals/EditChannelModal.jsx index 9167e05..e4d4e02 100644 --- a/web/src/components/table/channels/modals/EditChannelModal.jsx +++ b/web/src/components/table/channels/modals/EditChannelModal.jsx @@ -2566,12 +2566,22 @@ const EditChannelModal = (props) => { label='AccessKey' mode='password' autoComplete='new-password' + placeholder={ + inputs.asset_credential_configured + ? t('已配置,留空保持不变') + : t('请输入 AccessKey') + } /> {inputs.type === 61 ? (