feat: remain in the same position when back from a subfolder
This commit is contained in:
parent
08458da31c
commit
87d39c434c
@ -247,6 +247,10 @@ 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 });
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user