mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-09 11:42:57 +00:00
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)
|
api.fetch(url)
|
||||||
.then((req) => {
|
.then((req) => {
|
||||||
|
if (this.$store.state.baseURL + req.url !== window.location.pathname) return
|
||||||
if (!url.endsWith('/') && req.url.endsWith('/')) {
|
if (!url.endsWith('/') && req.url.endsWith('/')) {
|
||||||
window.history.replaceState(window.history.state, document.title, window.location.pathname + '/')
|
window.history.replaceState(window.history.state, document.title, window.location.pathname + '/')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user