import { useRequest } from 'umi'; import BpmTable from '../AuditList/BpmTable'; import UacTable from '../AuditList/UacTable'; export interface SingleProps { chainId?: string; } const Single = (props: SingleProps) => { const { chainId } = props; const { data: auditDetail } = useRequest( () => ({ url: '/goapi/audit/detail', method: 'POST', data: { chainId, }, }), { ready: !!chainId, refreshDeps: [chainId], formatResult: (res) => res?.data, }, ); const auditType = chainId?.includes('-') ? 'bpm' : 'uac'; return (