Fix/fast change directory (#43)
* fix:fast changing directory issue * fix baseURL is not included
This commit is contained in:
parent
218e638f88
commit
7e1d745435
|
@ -144,6 +144,7 @@ export default {
|
|||
|
||||
api.fetch(url)
|
||||
.then((req) => {
|
||||
if (this.$store.state.baseURL + req.url !== window.location.pathname) return
|
||||
if (!url.endsWith('/') && req.url.endsWith('/')) {
|
||||
window.history.replaceState(window.history.state, document.title, window.location.pathname + '/')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue