From cd41ee3696f78fa3256b1e0316c7ae5153b58d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=A7=82=E4=BC=9F?= Date: Fri, 16 Aug 2024 21:12:57 +0800 Subject: [PATCH] feat: menu add options --- src/components/Header/index.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 914ab4b..3a2ea9f 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -20,6 +20,14 @@ const MENU = [ title: 'WebShell 检测', href: '/webShell', }, + { + title: '编码转化', + href: `/toolkit/cyberChef/Base64Encoder`, + }, + { + title: '加密解密', + href: `/toolkit/cyberChef/AESEncrypt`, + }, { title: '其他工具', href: '/tools', @@ -101,6 +109,7 @@ const Header = () => { }} onClick={(e) => { e.preventDefault(); + e.stopPropagation(); if (item.type === 'menu') { return; } else { @@ -154,6 +163,10 @@ const Header = () => { fontSize: '14px', '&:hover': { color: 'primary.main', + backgroundColor: 'rgba(0, 0, 0, 0.12) !important', + }, + '&:focus': { + backgroundColor: 'transparent', }, }} onClick={() => {