修复实名认证页面跳转

This commit is contained in:
Eamon-meng
2025-11-20 19:06:33 +08:00
parent 755817849c
commit ce7d7fae6d
2 changed files with 5 additions and 10 deletions

View File

@@ -53,7 +53,9 @@ async function UserCenter() {
<CircleAlertIcon className="text-warn"/>
<span></span>
</span>
<Button className="h-9"></Button>
<Link href="/admin/identify">
<Button className="h-9"></Button>
</Link>
</>
)}
</div>

View File

@@ -3,7 +3,7 @@ import {Button} from '@/components/ui/button'
import {Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger} from '@/components/ui/dialog'
import {useRouter} from 'next/navigation'
import {useState} from 'react'
import Link from 'next/link'
interface RealnameAuthDialogProps {
hasAuthenticated: boolean
triggerClassName?: string
@@ -51,14 +51,7 @@ export function RealnameAuthDialog({
>
</Button>
<Button
onClick={() => {
router.push('/admin/identify')
onSuccess?.()
}}
>
</Button>
<Link href="/admin/identify"><Button onClick={() => actualOnOpenChange(false)}></Button></Link>
</div>
</div>
</DialogContent>