From a2959b03a4670e29ad43745b501f3e36cd7e099d Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Sun, 28 Apr 2024 19:43:56 +0800 Subject: [PATCH] =?UTF-8?q?update:=201.=20footer=20=E7=A4=BE=E4=BA=A4?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E4=BF=AE=E6=94=B9=202.=20Nav=20=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Footer/Footer.tsx | 2 +- src/components/Footer/data.ts | 14 +++++++------- src/components/Header/Nav.tsx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index d8c178b..468ff71 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -8,7 +8,7 @@ import MiniFooter from './MiniFooter'; export default function Footer() { const pathName = usePathname(); - const showFullFooter = pathName === '/' || /^\/vol\//.test(pathName); // 展示大 footer + const showFullFooter = pathName === '/' || /^\/vol\//.test(pathName) || /^\/music\//.test(pathName); // 展示大 footer const showNoFooter = /^\/my\//.test(pathName); // 不展示 footer return ( diff --git a/src/components/Footer/data.ts b/src/components/Footer/data.ts index af89880..58e8df6 100644 --- a/src/components/Footer/data.ts +++ b/src/components/Footer/data.ts @@ -19,11 +19,11 @@ export const agreementList = [ export const platformList = [ { - name: '雀乐音乐人', + name: '音乐人入驻', url: '#', }, { - name: '雀乐商城', + name: '音乐商城', url: '#', }, ]; @@ -56,11 +56,11 @@ export const socialList: IFooterLink[][] = [ // name: '雀乐微信群', // url: '#', // }, - { - name: '关于雀乐', - url: '/about', - target: '_self', - }, + // { + // name: '关于雀乐', + // url: '/about', + // target: '_self', + // }, { name: '抖音', url: 'https://www.douyin.com/user/MS4wLjABAAAAc7W6Pt4PbkLp7IdWD6IHUshkBjGwerHZSHn-U5p6JT8', diff --git a/src/components/Header/Nav.tsx b/src/components/Header/Nav.tsx index 2109b9e..6fb0f55 100644 --- a/src/components/Header/Nav.tsx +++ b/src/components/Header/Nav.tsx @@ -24,7 +24,7 @@ export default function Nav({ type = 'server' }: { type?: NextComponentType }) { const pathMatch = (path: string) => { if (path === '/') { - return pathName === path || /^\/vol\//.test(pathName) || /^\/music\//.test(pathName); + return pathName === '/' || /^\/vol\//.test(pathName) || /^\/music\//.test(pathName); } return pathName === path; };