Amélioration de la gestion des projets et mise à jour des chemins d'images
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user