♻️ Refactor frontend code
This commit is contained in:
@ -110,10 +110,10 @@ export async function fetchData() {
|
||||
const checkResponse = await fetch(`${baseUrl}/check`);
|
||||
if (checkResponse.status != 200) router.push("/login");
|
||||
|
||||
fetchClassList();
|
||||
fetchTimetable();
|
||||
fetchSubstitutions();
|
||||
fetchHistory();
|
||||
await fetchClassList();
|
||||
await fetchTimetable();
|
||||
await fetchSubstitutions();
|
||||
await fetchHistory();
|
||||
|
||||
loading.value = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user