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