修复实名认证页面跳转

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"/> <CircleAlertIcon className="text-warn"/>
<span></span> <span></span>
</span> </span>
<Link href="/admin/identify">
<Button className="h-9"></Button> <Button className="h-9"></Button>
</Link>
</> </>
)} )}
</div> </div>

View File

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