Amélioration de la gestion des projets et mise à jour des chemins d'images

This commit is contained in:
2025-02-11 20:43:59 +00:00
parent 3b694ff751
commit 6b9df1b0ee
3 changed files with 15 additions and 5 deletions

View File

@@ -23,9 +23,8 @@ function getAllProject() {
return $.ajax({
url: api_url.concat("/projects"),
method: "GET",
dataType: "json",
dataType: "json"
}).then((data) => {
// If the request is successful, store the data in the cache and return it
return data;
});
}
@@ -38,6 +37,7 @@ function getDataMetrics(projectId){
}).then((data) => {
// If the request is successful, store the data in the cache and return it
localStorage.setItem("project_list", JSON.stringify(data));
console.log(data);
return data;
});
}