feat: stay in the same position of the list when back from a sub folder
This commit is contained in:
parent
93e5fd321f
commit
f36ad1e8b6
@ -247,6 +247,10 @@ export default {
|
|||||||
this.addSelected(this.index);
|
this.addSelected(this.index);
|
||||||
},
|
},
|
||||||
open: function () {
|
open: function () {
|
||||||
|
window.sessionStorage.setItem(
|
||||||
|
this.$route.path,
|
||||||
|
JSON.stringify([document.documentElement.scrollTop, this.index])
|
||||||
|
);
|
||||||
this.$router.push({ path: this.url });
|
this.$router.push({ path: this.url });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user