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 && ( +