删除旧版本的发布说明文件,更新用户菜单以移除TVBox配置按钮,并在管理页面中添加TVBox配置按钮。

This commit is contained in:
katelya
2025-09-04 10:56:44 +08:00
parent 9083d83355
commit 4b9f87f7f8
5 changed files with 18 additions and 16 deletions
+1 -15
View File
@@ -2,7 +2,7 @@
'use client';
import { KeyRound, LogOut, Settings, Shield, Tv, User, X } from 'lucide-react';
import { KeyRound, LogOut, Settings, Shield, User, X } from 'lucide-react';
import { useRouter } from 'next/navigation';
import { useEffect, useState } from 'react';
import { createPortal } from 'react-dom';
@@ -149,11 +149,6 @@ export const UserMenu: React.FC = () => {
router.push('/admin');
};
const handleTVBoxConfig = () => {
setIsOpen(false);
router.push('/config');
};
const handleChangePassword = () => {
setIsOpen(false);
setIsChangePasswordOpen(true);
@@ -368,15 +363,6 @@ export const UserMenu: React.FC = () => {
<span className='font-medium'></span>
</button>
{/* TVBox配置按钮 */}
<button
onClick={handleTVBoxConfig}
className='w-full px-3 py-2 text-left flex items-center gap-2.5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors text-sm'
>
<Tv className='w-4 h-4 text-gray-500 dark:text-gray-400' />
<span className='font-medium'>TVBox配置</span>
</button>
{/* 管理面板按钮 */}
{showAdminPanel && (
<button