From b63e91a19d8fa4357f6feffb7dad033d3fb84907 Mon Sep 17 00:00:00 2001 From: ZLY Date: Wed, 3 Sep 2025 15:22:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(NavBar):=20=E5=88=A0=E9=99=A4=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=A0=8F=E6=B1=87=E6=80=BB=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NavBar/index.tsx | 61 ++------------------------------- 1 file changed, 2 insertions(+), 59 deletions(-) diff --git a/src/components/NavBar/index.tsx b/src/components/NavBar/index.tsx index 33cb447..5a8b8a2 100644 --- a/src/components/NavBar/index.tsx +++ b/src/components/NavBar/index.tsx @@ -1,9 +1,6 @@ import React, { useContext, useEffect } from 'react'; import { - Tooltip, - Input, Avatar, - Select, Dropdown, Menu, Divider, @@ -11,10 +8,6 @@ import { Button } from '@arco-design/web-react'; import { - IconLanguage, - IconNotification, - IconSunFill, - IconMoonFill, IconUser, IconSettings, IconPoweroff, @@ -28,14 +21,10 @@ import { useSelector, useDispatch } from 'react-redux'; import { GlobalState } from '@/store'; import { GlobalContext } from '@/context'; import useLocale from '@/utils/useLocale'; -import MessageBox from '@/components/MessageBox'; -import IconButton from './IconButton'; import Settings from '../Settings'; import styles from './style/index.module.less'; -import defaultLocale from '@/locale'; import useStorage from '@/utils/useStorage'; import { generatePermission } from '@/routes'; -import { Image } from '@arco-design/web-react'; import logoImage from '@/public/assets/logo.png'; function Navbar({ show }: { show: boolean }) { @@ -56,7 +45,8 @@ function Navbar({ show }: { show: boolean }) { function onMenuItemClick(key) { if (key === 'logout') { logout(); - } else { + } + else { Message.info(`You clicked ${key}`); } } @@ -154,53 +144,6 @@ function Navbar({ show }: { show: boolean }) {