feat: Suppression de code inutil

This commit is contained in:
Simon 2022-04-05 16:36:17 +02:00
parent e2d263887d
commit 4a3578b8ff
2 changed files with 1 additions and 21 deletions

View File

@ -1,20 +0,0 @@
const apiUrl = "https://admin.ceiba-conseil.com";
export async function fetchJSONApi(path) {
const url = `${apiUrl}${path}`;
const options = {
method: "GET",
headers: {
"content-type": "application/json",
},
};
console.log(`fetchJSONApi: ${url}`);
const response = await fetch(url, options);
if (!response.ok) {
const errors = await response.json();
throw errors.errors[0].message;
}
return response.json();
}

View File

@ -59,7 +59,7 @@ function formatScore(score) {
const title = score ? score.title : ""; const title = score ? score.title : "";
const questions = ref(formatScore(score)); const questions = ref(formatScore(score));
console.log(questions.value);
function nextQuestion() { function nextQuestion() {
setTimeout(() => slides.value.go(">"), 100); setTimeout(() => slides.value.go(">"), 100);
} }