[+] Load course info
This commit is contained in:
@@ -35,6 +35,18 @@
|
|||||||
export default class CourseSelection extends Vue
|
export default class CourseSelection extends Vue
|
||||||
{
|
{
|
||||||
@Prop({required: true}) app: App;
|
@Prop({required: true}) app: App;
|
||||||
|
|
||||||
|
courseInfo: any[] = [];
|
||||||
|
loading = true;
|
||||||
|
|
||||||
|
created()
|
||||||
|
{
|
||||||
|
// Get courses
|
||||||
|
App.http.post('/course-info', {}).then(result =>
|
||||||
|
{
|
||||||
|
if (result.success) this.courseInfo = result.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user