import { MyPageContainer } from '@/common';
import { useSearchParams } from '@umijs/max';
import type { TabsProps } from 'antd';
import { Tabs } from 'antd';
import { useEffect, useState } from 'react';
import IsVisited from './components/IsVisited';
import NoVisited from './components/NoVisited';
export default function Index({ title = '工单回访' }) {
const [searchParams] = useSearchParams();
const [activeKey, setActiveKey] = useState('1');
const items: TabsProps['items'] = [
{
key: 'NoVisited',
label: '未回访工单',
children: ,
},
{
key: 'IsVisited',
label: '已回访工单',
children: ,
},
];
useEffect(() => {
if (searchParams?.get('key')) {
setActiveKey(searchParams?.get('key') || '1');
}
}, []);
return (
);
}