mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-28 12:36:41 +07:00
save: fixed dialog
backend: fixed provider storing
This commit is contained in:
parent
17baf8ac15
commit
7cdc1f4f95
5 changed files with 17 additions and 12 deletions
|
@ -1,9 +1,8 @@
|
|||
import { history } from '$redux/store';
|
||||
|
||||
export const getPath = () => (window.location && window.location.pathname);
|
||||
export const pushPath = url => {
|
||||
return history.push(url);
|
||||
};
|
||||
export const pushPath = url => history.push(url);
|
||||
export const replacePath = url => history.replace(url);
|
||||
|
||||
export const getUrlData = (url = getPath()) => {
|
||||
const [, path, mode] = url.split('/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue