From 6605cc88629f472d0dd2a1bc7f67e879a0acf8bb Mon Sep 17 00:00:00 2001 From: linxd <544554903@qq.com> Date: Mon, 30 Jun 2025 19:48:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=8F=8B=E6=83=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/proxy.ts | 2 +- src/pages/index/Link.tsx | 28 ++++++++++++++++++++++------ src/pages/index/index.less | 1 + src/pages/index/index.tsx | 6 ++++-- src/servers/api/index.ts | 2 +- src/servers/api/typings.d.ts | 27 +++++++++++++++++++++++++++ 6 files changed, 56 insertions(+), 10 deletions(-) diff --git a/config/proxy.ts b/config/proxy.ts index 62211ad..53474f3 100644 --- a/config/proxy.ts +++ b/config/proxy.ts @@ -7,7 +7,7 @@ export default { // }, '/api': { // target: 'http://10.242.37.148:18022',//连接天宫的ng - target: 'http://10.0.0.14:18013',//连接天宫的ng + target: 'http://10.0.0.10:18013',//连接天宫的ng changeOrigin: true, pathRewrite: { '^/api': '' }, }, diff --git a/src/pages/index/Link.tsx b/src/pages/index/Link.tsx index 567b11c..3a3c16c 100644 --- a/src/pages/index/Link.tsx +++ b/src/pages/index/Link.tsx @@ -1,14 +1,30 @@ import React from 'react'; -const LinkComponent: React.FC = () => { +import { Select } from 'antd'; + +const LinkComponent: React.FC<{ links: API.CoscoPortalsLinksClassification }> = ({ links }) => { + console.log(links); return (
友情链接
- 百度 - 百度 - 百度 - 百度 - 百度 + {links.map((link) => ( + <> + {link.links.length > 0 && ( +