feat(web): add graph detail page

This commit is contained in:
zhaoying
2026-01-13 14:04:28 +08:00
parent 2f13cb4cbc
commit 1ebab759b1
5 changed files with 86 additions and 75 deletions

View File

@@ -1,7 +1,7 @@
import { type FC, useEffect, useState, useMemo, useRef } from 'react'
import { useParams, useNavigate } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
import { Dropdown, Space, Button } from 'antd'
import { Dropdown, Button } from 'antd'
import PageHeader from '../components/PageHeader'
import StatementDetail from './StatementDetail'
@@ -16,6 +16,7 @@ import {
getEndUserProfile,
} from '@/api/memory'
import refreshIcon from '@/assets/images/refresh_hover.svg'
import GraphDetail from './GraphDetail'
const Detail: FC = () => {
const { t } = useTranslation()
@@ -47,6 +48,10 @@ const Detail: FC = () => {
forgetDetailRef.current?.handleRefresh()
}
if (type === 'GRAPH') {
return <GraphDetail />
}
return (
<div className="rb:h-full rb:w-full">
<PageHeader