mirror of
https://github.com/SomboChea/ui
synced 2026-01-16 08:05:44 +07:00
* feat: browser history is aware of basename * test: fix ui options global object * chore: fix comment
13 lines
217 B
JavaScript
13 lines
217 B
JavaScript
/**
|
|
* @prettier
|
|
*/
|
|
|
|
import { createBrowserHistory } from 'history';
|
|
import { getBaseNamePath } from './utils/url';
|
|
|
|
const history = createBrowserHistory({
|
|
basename: getBaseNamePath(),
|
|
});
|
|
|
|
export default history;
|