From e6dd31ba41cd225afd438e1be298d9f13a190ed3 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:48:00 +0800 Subject: [PATCH] fix: disable highlight function in mobile --- frontend/src/views/files/Listing.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/files/Listing.vue b/frontend/src/views/files/Listing.vue index 369634fc..87351e36 100644 --- a/frontend/src/views/files/Listing.vue +++ b/frontend/src/views/files/Listing.vue @@ -395,8 +395,8 @@ export default { // Fill and fit the window with listing items this.fillWindow(true); if (window.sessionStorage.getItem(this.$route.path)) { - this.addSelected(JSON.parse(window.sessionStorage.getItem(this.$route.path))[1]); document.documentElement.scrollTop = JSON.parse(window.sessionStorage.getItem(this.$route.path))[0]; + if(!this.isMobile) this.addSelected(JSON.parse(window.sessionStorage.getItem(this.$route.path))[1]); window.sessionStorage.removeItem(this.$route.path); } });