Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dcd958d

Browse files
committed
Fix selected menu key when browser history back
1 parent f795b83 commit dcd958d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/pages/layout/index.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const LayoutPage: FC = () => {
3030
const code = getFirstPathCode(location.pathname);
3131

3232
setOpenkey(code);
33+
setSelectedKey(location.pathname);
3334
}, [location.pathname]);
3435

3536
const toggle = () => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /