From 996d2949dec05aade2de34e8e3d333dfdcccf457 Mon Sep 17 00:00:00 2001 From: "gwenael.planchon" Date: Tue, 12 Mar 2024 11:11:11 +0100 Subject: [PATCH] faire marcher le bouton rafraichir --- science-quest/src/components/admin/gestion/Liste.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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{ - +