Skip to content

Commit a78b606

Browse files
committedDec 7, 2022
website: update sider menus.
1 parent 392c219 commit a78b606

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎www/src/pages/theme/themes/SiderMenus.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ export function SiderMenus() {
3232
.filter(Boolean)
3333
.map((item) => item?.slice(0, 1).toUpperCase() + item?.slice(1).toLowerCase())
3434
.join(' ');
35+
const href = `/theme/data/${_name}${_theme ? `/${_theme}` : ''}${other ? `/${other.join('/')}` : ''}`;
3536
return (
36-
<MenuItem
37-
key={key}
38-
to={`/theme/data/${_name}${_theme ? `/${_theme}` : ''}${other ? `/${other.join('/')}` : ''}`}
39-
>
37+
<MenuItem key={key} to={href.replace(/\/$/gi, '')}>
4038
{title}
4139
</MenuItem>
4240
);

0 commit comments

Comments
 (0)
Please sign in to comment.