|
@@ -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',
|