import React, { useRef } from 'react'; import { connect } from 'umi'; import type { StateType } from '../model'; import ProCard from '@ant-design/pro-card'; import EntitySection from '../components/Entity/EntitySection'; import { ChatConfigType } from '../enum'; import type { Dispatch } from 'umi'; type Props = { domainManger: StateType; dispatch: Dispatch; }; const ChatSettingSection: React.FC = () => { const metricRef = useRef(); const tagRef = useRef(); return (
{ tagRef.current.refreshConfigData(); }} /> { metricRef.current.refreshConfigData(); }} />
); }; export default connect(({ domainManger }: { domainManger: StateType }) => ({ domainManger, }))(ChatSettingSection);