网络直播增加开关

This commit is contained in:
mtvpls
2026-01-21 00:16:42 +08:00
parent 77ee98aee4
commit 5c08304b6d
8 changed files with 177 additions and 8 deletions

View File

@@ -93,12 +93,16 @@ const MobileBottomNav = ({ activePath }: MobileBottomNavProps) => {
label: '电视直播',
href: '/live',
},
{
];
// 如果启用网络直播,添加网络直播入口
if (runtimeConfig?.WEB_LIVE_ENABLED) {
items.push({
icon: Globe,
label: '网络直播',
href: '/web-live',
},
];
});
}
// 如果配置了 OpenList 或 Emby添加私人影库入口
if (runtimeConfig?.PRIVATE_LIBRARY_ENABLED) {

View File

@@ -184,12 +184,16 @@ const Sidebar = ({ onToggle, activePath = '/' }: SidebarProps) => {
label: '电视直播',
href: '/live',
},
{
];
// 如果启用网络直播,添加网络直播入口
if (runtimeConfig?.WEB_LIVE_ENABLED) {
items.push({
icon: Globe,
label: '网络直播',
href: '/web-live',
},
];
});
}
// 如果配置了 OpenList 或 Emby添加私人影库入口
if (runtimeConfig?.PRIVATE_LIBRARY_ENABLED) {