From d07c403de367048d12a4d17721728790782e4703 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:52:05 +0800 Subject: [PATCH] feat: remain in the same position of the list when back from a sub folder --- frontend/src/components/files/ListingItem.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/files/ListingItem.vue b/frontend/src/components/files/ListingItem.vue index f7733b87..0bdc3d79 100644 --- a/frontend/src/components/files/ListingItem.vue +++ b/frontend/src/components/files/ListingItem.vue @@ -247,6 +247,7 @@ export default { this.addSelected(this.index); }, open: function () { + window.sessionStorage.setItem(this.$route.path, JSON.stringify([document.documentElement.scrollTop, this.index])); this.$router.push({ path: this.url }); }, },