diff --git a/science-quest/src/components/admin/gestion/Liste.vue b/science-quest/src/components/admin/gestion/Liste.vue index 0ab6fa7..e3dbc03 100644 --- a/science-quest/src/components/admin/gestion/Liste.vue +++ b/science-quest/src/components/admin/gestion/Liste.vue @@ -20,11 +20,13 @@ export default{ }; }, mounted(){ - //TODO faire route pour prendre la page a partir de l'URL - this.self=`${REST_API}/${this.endpoint}?page=${this.page}` - this.getScientifiques(this.self) + this.rafraichirEndpoint() }, methods:{ + rafraichirEndpoint(){ + this.self=`${REST_API}/${this.endpoint}?page=${this.page}` + this.getScientifiques(this.self) + }, getScientifiques(url){ //HACK : s'assurer que les liens sont en HTTPS url=url.replace("http://", "https://") @@ -57,7 +59,7 @@ export default{ - +