[O] Combine course info and directory

This commit is contained in:
Hykilpikonna
2020-04-12 15:53:37 -04:00
parent 97ca5c5443
commit 3e3ab4fdab
@@ -75,16 +75,14 @@
{ {
if (result.success) if (result.success)
{ {
console.log(result);
// Parse data // Parse data
this.courseInfo = result.data.map((json: any) => new CourseInfo(json)); this.courseInfo = result.data.courseInfos.map((json: any) => new CourseInfo(json));
this.directory = result.data.studentInfos;
} }
}); });
// Get directory
App.http.post('/directory', {}).then(result =>
{
if (result.success) this.directory = result.data;
})
} }
/** /**