This commit is contained in:
parent
9e92ed3a1d
commit
d39a3d39e6
|
|
@ -3,7 +3,7 @@
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import { Session } from 'next-auth'
|
import { Session } from 'next-auth'
|
||||||
import { signOut } from 'next-auth/react'
|
import { signOut } from 'next-auth/react'
|
||||||
import { LogOut, User, Pickaxe } from "lucide-react"; // 导入图标
|
import { LogOut, User, Pickaxe, ShieldCheck } from "lucide-react"; // 导入图标
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import {
|
import {
|
||||||
DropdownMenu,
|
DropdownMenu,
|
||||||
|
|
@ -84,6 +84,17 @@ export function UserMenu({ user }: { user: UserData }) {
|
||||||
Mining
|
Mining
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
|
|
||||||
|
{/* 新增 "Security" 选项 */}
|
||||||
|
<DropdownMenuItem
|
||||||
|
onClick={() => {
|
||||||
|
router.push("/security"); // 跳转到安全页面 "/security"
|
||||||
|
}}
|
||||||
|
className="flex items-center text-xs"
|
||||||
|
>
|
||||||
|
<ShieldCheck className="w-4 h-4 mr-2" /> {/* 安全图标 (ShieldCheck) */}
|
||||||
|
Security
|
||||||
|
</DropdownMenuItem>
|
||||||
|
|
||||||
|
|
||||||
{/* 新增 "Profile" 选项 */}
|
{/* 新增 "Profile" 选项 */}
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue