Fix/fast change directory (#43)

* fix:fast changing directory issue

* fix baseURL is not included
This commit is contained in:
helloray authored and Henrique Dias committed 2018-12-05 11:25:26 +00:00
1 parent 218e638f88
commit 7e1d745435
1 file changed
+1
+1
View File
@@ -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 + '/')
}