From 7e1d7454355238d258e5fcb1ad42c5d90a9ad920 Mon Sep 17 00:00:00 2001 From: helloray Date: Wed, 5 Dec 2018 19:25:26 +0800 Subject: [PATCH] Fix/fast change directory (#43) * fix:fast changing directory issue * fix baseURL is not included --- src/views/Files.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/Files.vue b/src/views/Files.vue index 7c26b3e5..513b52b1 100644 --- a/src/views/Files.vue +++ b/src/views/Files.vue @@ -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 + '/') }