From bc200c3b47601c1a1d17fd75eaba1f25f52124d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E9=98=B3?= Date: Tue, 30 Dec 2025 20:45:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0404=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E4=B8=BA=E4=B8=AD=E6=96=87=EF=BC=8C=E5=B9=B6=E9=87=8D=E6=9E=84?= =?UTF-8?q?Header=E7=BB=84=E4=BB=B6=EF=BC=8C=E6=9B=BF=E6=8D=A2AAA=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=B8=BASidebarNav=E7=BB=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8=E7=9A=84?= =?UTF-8?q?AAA=E7=BB=84=E4=BB=B6=E6=96=87=E4=BB=B6=E4=BB=A5=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/not-found.tsx | 2 +- .../Header/component/{AAA => SidebarNav}/index.tsx | 4 ++-- src/components/Header/index.tsx | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/components/Header/component/{AAA => SidebarNav}/index.tsx (87%) diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 7312d36..26efd72 100755 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -18,7 +18,7 @@ export default function NotFound() {

404

Page not found

-

The page you are looking for does not exist or has been removed.

+

您正在访问的页面不存在或已被删除

diff --git a/src/components/Header/component/AAA/index.tsx b/src/components/Header/component/SidebarNav/index.tsx similarity index 87% rename from src/components/Header/component/AAA/index.tsx rename to src/components/Header/component/SidebarNav/index.tsx index 572bb06..54d1b4c 100755 --- a/src/components/Header/component/AAA/index.tsx +++ b/src/components/Header/component/SidebarNav/index.tsx @@ -45,7 +45,7 @@ export default ({ list, open, onClose }: Props) => { {one.type === 'nav' && (
  • - + {one.icon} {one.name} @@ -56,7 +56,7 @@ export default ({ list, open, onClose }: Props) => {
      {one.children?.map((two) => (
    • - + {two.icon} {two.name}
    • diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 460740e..005c1f8 100755 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -6,7 +6,7 @@ import React, { useState, useEffect } from 'react'; import { Switch } from '@heroui/react'; import Show from '@/components/Show'; -import AAA from './component/AAA'; +import SidebarNav from './component/SidebarNav'; import { IoIosArrowDown } from 'react-icons/io'; import { FaRegSun } from 'react-icons/fa'; @@ -93,7 +93,7 @@ const Header = () => { {/* 渲染分类 */} {one.type === 'cate' && (
    • - + {one.icon} {one.name} @@ -104,7 +104,7 @@ const Header = () => {
        {one.children?.map((two) => (
      • - + {two.name}
      • @@ -149,7 +149,7 @@ const Header = () => { {/* 侧边导航:移动端时候显示 */} {/* setIsOpenSidebarNav(false)} /> */} - setIsOpenSidebarNav(false)} /> + setIsOpenSidebarNav(false)} /> ); };