From baedd70f5328c3cfbc38cddca2ecc0343eed1e0f Mon Sep 17 00:00:00 2001 From: linxd <544554903@qq.com> Date: Mon, 14 Jul 2025 13:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=8B=E6=83=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E6=A0=B7=E5=BC=8F=EF=BC=9B=E5=A2=9E=E5=8A=A0=E6=9D=83?= =?UTF-8?q?=E9=99=90=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/router.config.ts | 1 + src/layouts/Footer.tsx | 3 +-- src/pages/index/Link.tsx | 33 --------------------------------- 3 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 src/pages/index/Link.tsx diff --git a/config/router.config.ts b/config/router.config.ts index 9ddb4d4..2a23abd 100644 --- a/config/router.config.ts +++ b/config/router.config.ts @@ -71,6 +71,7 @@ export default [ name: 'helpQuestion', path: '/help/helpQuestion', component: '@/pages/help/helpQuestion', + wrappers: ['@/wrappers/auth'], }, { path: '/register', diff --git a/src/layouts/Footer.tsx b/src/layouts/Footer.tsx index b6fc1ca..b7462ee 100644 --- a/src/layouts/Footer.tsx +++ b/src/layouts/Footer.tsx @@ -7,7 +7,6 @@ const Footer: React.FC = () => { useEffect(() => { getCoscoPortalsLinksClassification().then((res) => { setLinks(res.data); - console.log(res.data); }); }, []); return ( @@ -20,7 +19,7 @@ const Footer: React.FC = () => { <> {link.links.length > 0 && ( ({ - label: item.name, - value: item.url, - }))} - onChange={(value) => { - window.open(value as string, '_blank'); - }} - /> - )} - - ))} - - - ); -}; - -export default LinkComponent;