mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-08-03 01:53:18 +08:00
Prepare to separate subjects into own page
This commit is contained in:
parent
1990be3972
commit
d6df6d4f7a
3 changed files with 465 additions and 229 deletions
|
@ -145,7 +145,7 @@ export async function PatchUserInfo(info: PatchStudentData) {
|
|||
let error_message = "";
|
||||
if (error.response) error_message = error.response.data;
|
||||
else error_message = "Unable to reach servers";
|
||||
console.log(error_message);
|
||||
// console.log(error_message);
|
||||
return [false, error_message];
|
||||
});
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ export async function GetYearLevels() {
|
|||
return instance
|
||||
.get("/api/v1/year_levels/", config)
|
||||
.then((response) => {
|
||||
console.log(JSON.stringify(response.data));
|
||||
// console.log(JSON.stringify(response.data));
|
||||
return [true, response.data];
|
||||
})
|
||||
.catch((error) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue