用户组增加权限控制

This commit is contained in:
mtvpls
2026-04-22 16:22:17 +08:00
parent 2734de0c85
commit 0916e4ff08
61 changed files with 617 additions and 165 deletions
+14 -15
View File
@@ -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',
},
]
: []),
];
// 如果启用网络直播,添加网络直播入口
+9 -10
View File
@@ -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',
},
]
: []),
];
// 如果启用网络直播,添加网络直播入口