对接友情链接

This commit is contained in:
linxd
2025-06-30 19:48:57 +08:00
parent 60473ed8ae
commit 6605cc8862
6 changed files with 56 additions and 10 deletions

View File

@ -8,6 +8,7 @@ import { getCoscoPortalsLinksClassification } from '@/servers/api';
const IndexPage: React.FC = () => {
const intl = useIntl();
const [noticeLoading, setNoticeLoading] = useState(false);
const [links, setLinks] = useState<API.CoscoPortalsLinksClassification>([]);
const [noticeList, setNoticeList] = useState([
{
title: 'CA使用通知',
@ -155,7 +156,8 @@ const IndexPage: React.FC = () => {
useEffect(() => {
getCoscoPortalsLinksClassification().then((res) => {
console.log(res);
setLinks(res.data);
console.log(res.data);
});
}, []);
@ -249,7 +251,7 @@ const IndexPage: React.FC = () => {
</div>
<div>
<LinkComponent />
<LinkComponent links={links} />
</div>
</div>
);