From ea0d4e5cdec31b1f30ff2a2270f731625473c9af Mon Sep 17 00:00:00 2001 From: fengsilin Date: Sat, 16 May 2026 01:16:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=AE=8C=E6=95=B4=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=89=8D=E7=AB=AF=E6=B8=A0=E9=81=93=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=92=8C=E9=BB=98=E8=AE=A4=E9=80=9A=E9=81=93=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../playground/OptimizedComponents.js | 1 - .../components/playground/SettingsPanel.jsx | 33 --------------- .../modal/components/ChannelPricingCard.jsx | 6 --- .../view/card/PricingCardView.jsx | 12 ------ .../table/tokens/modals/EditTokenModal.jsx | 18 -------- web/src/constants/playground.constants.js | 1 - web/src/helpers/api.js | 8 ---- .../hooks/playground/usePlaygroundState.js | 3 -- web/src/pages/Playground/index.jsx | 42 ------------------- .../Operation/SettingsChannelAffinity.jsx | 1 - .../Setting/Ratio/ChannelPricingView.jsx | 39 ----------------- 11 files changed, 164 deletions(-) diff --git a/web/src/components/playground/OptimizedComponents.js b/web/src/components/playground/OptimizedComponents.js index 37ff65b..62baa24 100644 --- a/web/src/components/playground/OptimizedComponents.js +++ b/web/src/components/playground/OptimizedComponents.js @@ -75,7 +75,6 @@ export const OptimizedSettingsPanel = React.memo( JSON.stringify(prevProps.previewPayload) === JSON.stringify(nextProps.previewPayload) && JSON.stringify(prevProps.messages) === JSON.stringify(nextProps.messages) && - JSON.stringify(prevProps.channels) === JSON.stringify(nextProps.channels) && prevProps.mutualExclusive === nextProps.mutualExclusive ); }, diff --git a/web/src/components/playground/SettingsPanel.jsx b/web/src/components/playground/SettingsPanel.jsx index 7b6260d..2c7b1aa 100644 --- a/web/src/components/playground/SettingsPanel.jsx +++ b/web/src/components/playground/SettingsPanel.jsx @@ -46,7 +46,6 @@ const SettingsPanel = ({ onCustomRequestBodyChange, previewPayload, messages, - channels = [], }) => { const { t } = useTranslation(); @@ -179,38 +178,6 @@ const SettingsPanel = ({ /> - {/* 通道选择 */} -
-
- - {t('通道')} - - {customRequestMode && ( - - ({t('已在自定义模式中忽略')}) - - )} -
-