Fixed scroll to top.
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
</nav>
|
||||
|
||||
<Pagination
|
||||
ref="pagination"
|
||||
:items-total="totalCount"
|
||||
:items-per-page="limit"
|
||||
/>
|
||||
@@ -99,6 +100,8 @@ async function fetchActors() {
|
||||
|
||||
this.actors = actors;
|
||||
this.totalCount = totalCount;
|
||||
|
||||
this.$refs.pagination.$el.scrollIntoView();
|
||||
}
|
||||
|
||||
function letter() {
|
||||
@@ -130,7 +133,7 @@ export default {
|
||||
actors: [],
|
||||
pageTitle: null,
|
||||
totalCount: 0,
|
||||
limit: 30,
|
||||
limit: 50,
|
||||
letters: ['all'].concat(Array.from({ length: 26 }, (value, index) => String.fromCharCode(index + 97).toUpperCase())),
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user