source:
sources/client/src/utils/onClickRouting.js@
3a58bd6
Last change on this file since 3a58bd6 was 3a58bd6, checked in by , 3 years ago | |
---|---|
|
|
File size: 220 bytes |
Rev | Line | |
---|---|---|
[3a58bd6] | 1 | export default function onClickRouting(path, history) { |
2 | const currentPath = history.location.pathname; | |
3 | if (currentPath === path) { | |
4 | history.replace(path); | |
5 | return; | |
6 | } | |
7 | history.push(path); | |
8 | }; | |
9 |
Note:
See TracBrowser
for help on using the repository browser.