Quellcode durchsuchen

🎨 chore(sidebar): swap “Channel Management” and “Model Management” positions in admin menu

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.
t0ng7u vor 7 Monaten
Ursprung
Commit
8abd764eca
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 6
      web/src/components/layout/SiderBar.js

+ 6 - 6
web/src/components/layout/SiderBar.js

@@ -128,18 +128,18 @@ const SiderBar = ({ onNavigate = () => { } }) => {
 
 
   const adminItems = useMemo(
   const adminItems = useMemo(
     () => [
     () => [
-      {
-        text: t('模型管理'),
-        itemKey: 'models',
-        to: '/console/models',
-        className: isAdmin() ? '' : 'tableHiddle',
-      },
       {
       {
         text: t('渠道管理'),
         text: t('渠道管理'),
         itemKey: 'channel',
         itemKey: 'channel',
         to: '/channel',
         to: '/channel',
         className: isAdmin() ? '' : 'tableHiddle',
         className: isAdmin() ? '' : 'tableHiddle',
       },
       },
+      {
+        text: t('模型管理'),
+        itemKey: 'models',
+        to: '/console/models',
+        className: isAdmin() ? '' : 'tableHiddle',
+      },
       {
       {
         text: t('兑换码管理'),
         text: t('兑换码管理'),
         itemKey: 'redemption',
         itemKey: 'redemption',