mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed history listener
This commit is contained in:
parent
0a01c91271
commit
45ffff3550
2 changed files with 6 additions and 6 deletions
|
@ -43,7 +43,8 @@ export function configureStore(): { store: Store<any>, persistor: Persistor } {
|
|||
}
|
||||
|
||||
export const history = createBrowserHistory();
|
||||
// export const historyListener = history.listen((location, action) => {
|
||||
// if (action === 'REPLACE') return;
|
||||
// store.dispatch(locationChanged(location.pathname));
|
||||
// });
|
||||
|
||||
history.listen((location, action) => {
|
||||
if (action === 'REPLACE') return;
|
||||
store.dispatch(locationChanged(location.pathname));
|
||||
});
|
||||
|
|
|
@ -34,8 +34,7 @@
|
|||
width: 48px;
|
||||
height: 48px;
|
||||
background-size: cover;
|
||||
background-position: 50% 50%;
|
||||
background: rgba(0,0,0,0.3);
|
||||
background: rgba(0, 0, 0, 0.3) 50% 50%;
|
||||
border-radius: 3px 0 0 3px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue