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