用户组增加权限控制
This commit is contained in:
@@ -54,16 +54,11 @@ const MobileBottomNav = ({ activePath }: MobileBottomNavProps) => {
|
||||
label: '综艺',
|
||||
href: '/douban?type=show',
|
||||
},
|
||||
{
|
||||
icon: TvMinimalPlay,
|
||||
label: '电视直播',
|
||||
href: '/live',
|
||||
},
|
||||
{
|
||||
icon: Globe,
|
||||
label: '网络直播',
|
||||
href: '/web-live',
|
||||
},
|
||||
{
|
||||
icon: TvMinimalPlay,
|
||||
label: '电视直播',
|
||||
href: '/live',
|
||||
},
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -92,11 +87,15 @@ const MobileBottomNav = ({ activePath }: MobileBottomNavProps) => {
|
||||
label: '综艺',
|
||||
href: '/douban?type=show',
|
||||
},
|
||||
{
|
||||
icon: TvMinimalPlay,
|
||||
label: '电视直播',
|
||||
href: '/live',
|
||||
},
|
||||
...(runtimeConfig?.LIVE_ENABLED
|
||||
? [
|
||||
{
|
||||
icon: TvMinimalPlay,
|
||||
label: '电视直播',
|
||||
href: '/live',
|
||||
},
|
||||
]
|
||||
: []),
|
||||
];
|
||||
|
||||
// 如果启用网络直播,添加网络直播入口
|
||||
|
||||
@@ -151,11 +151,6 @@ const Sidebar = ({ onToggle, activePath = '/' }: SidebarProps) => {
|
||||
label: '电视直播',
|
||||
href: '/live',
|
||||
},
|
||||
{
|
||||
icon: Globe,
|
||||
label: '网络直播',
|
||||
href: '/web-live',
|
||||
},
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -183,11 +178,15 @@ const Sidebar = ({ onToggle, activePath = '/' }: SidebarProps) => {
|
||||
label: '综艺',
|
||||
href: '/douban?type=show',
|
||||
},
|
||||
{
|
||||
icon: TvMinimalPlay,
|
||||
label: '电视直播',
|
||||
href: '/live',
|
||||
},
|
||||
...(runtimeConfig?.LIVE_ENABLED
|
||||
? [
|
||||
{
|
||||
icon: TvMinimalPlay,
|
||||
label: '电视直播',
|
||||
href: '/live',
|
||||
},
|
||||
]
|
||||
: []),
|
||||
];
|
||||
|
||||
// 如果启用网络直播,添加网络直播入口
|
||||
|
||||
Reference in New Issue
Block a user