feat: remain in the same position of the list when back from a sub folder

This commit is contained in:
niubility000 2024-03-15 11:29:48 +08:00 committed by GitHub
parent 4f959f8319
commit 44d5a51f63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -249,7 +249,7 @@ export default {
open: function () { open: function () {
window.sessionStorage.setItem( window.sessionStorage.setItem(
this.$route.path, this.$route.path,
JSON.stringify([document.documentElement.scrollTop, this.index]) JSON.stringify([document.documentElement.scrollTop, this.index])
); );
this.$router.push({ path: this.url }); this.$router.push({ path: this.url });
}, },