Skip to content

Commit 50c1e9d

Browse files
authored
Merge pull request #151 from guanweiwang/main
feat: menu add options
2 parents 280db4e + cd41ee3 commit 50c1e9d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/components/Header/index.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ const MENU = [
2020
title: 'WebShell 检测',
2121
href: '/webShell',
2222
},
23+
{
24+
title: '编码转化',
25+
href: `/toolkit/cyberChef/Base64Encoder`,
26+
},
27+
{
28+
title: '加密解密',
29+
href: `/toolkit/cyberChef/AESEncrypt`,
30+
},
2331
{
2432
title: '其他工具',
2533
href: '/tools',
@@ -101,6 +109,7 @@ const Header = () => {
101109
}}
102110
onClick={(e) => {
103111
e.preventDefault();
112+
e.stopPropagation();
104113
if (item.type === 'menu') {
105114
return;
106115
} else {
@@ -154,6 +163,10 @@ const Header = () => {
154163
fontSize: '14px',
155164
'&:hover': {
156165
color: 'primary.main',
166+
backgroundColor: 'rgba(0, 0, 0, 0.12) !important',
167+
},
168+
'&:focus': {
169+
backgroundColor: 'transparent',
157170
},
158171
}}
159172
onClick={() => {

0 commit comments

Comments
 (0)