Skip to content

Commit

Permalink
feat: pass the route object directly
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHirt committed Jul 8, 2021
1 parent 324e94f commit 4de48d7
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:pages="pages"
:current-page="currentPage"
:max-displayed="3"
:current-route="targetRoute"
:current-route="$route"
class="files-pagination uk-flex uk-flex-center oc-my-s"
/>
</template>
Expand All @@ -15,11 +15,7 @@ import { mapState, mapGetters } from 'vuex'
export default {
computed: {
...mapState('Files', ['currentPage']),
...mapGetters('Files', ['pages']),
targetRoute() {
return { name: this.$route.name, query: this.$route.query, params: this.$route.params }
}
...mapGetters('Files', ['pages'])
}
}
</script>

0 comments on commit 4de48d7

Please sign in to comment.