From 8abd764eca8d8a36a052424a6592035686da685f Mon Sep 17 00:00:00 2001 From: t0ng7u Date: Sat, 9 Aug 2025 08:50:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20chore(sidebar):=20swap=20?= =?UTF-8?q?=E2=80=9CChannel=20Management=E2=80=9D=20and=20=E2=80=9CModel?= =?UTF-8?q?=20Management=E2=80=9D=20positions=20in=20admin=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sidebar’s admin section now displays “Channel Management” before “Model Management” to better reflect common user workflows and improve navigation clarity. Details: • Updated `web/src/components/layout/SiderBar.js` – Re-ordered items in `adminItems` array so `channel` precedes `models`. • No logic or route changes; this is purely a UI ordering adjustment. This change enhances usability for administrators by presenting frequently accessed channel settings first. --- web/src/components/layout/SiderBar.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/components/layout/SiderBar.js b/web/src/components/layout/SiderBar.js index cd623ded..bac677e8 100644 --- a/web/src/components/layout/SiderBar.js +++ b/web/src/components/layout/SiderBar.js @@ -128,18 +128,18 @@ const SiderBar = ({ onNavigate = () => { } }) => { const adminItems = useMemo( () => [ - { - text: t('模型管理'), - itemKey: 'models', - to: '/console/models', - className: isAdmin() ? '' : 'tableHiddle', - }, { text: t('渠道管理'), itemKey: 'channel', to: '/channel', className: isAdmin() ? '' : 'tableHiddle', }, + { + text: t('模型管理'), + itemKey: 'models', + to: '/console/models', + className: isAdmin() ? '' : 'tableHiddle', + }, { text: t('兑换码管理'), itemKey: 'redemption',