[+] Load directory
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
@Prop({required: true}) app: App;
|
@Prop({required: true}) app: App;
|
||||||
|
|
||||||
courseInfo: any[] = [];
|
courseInfo: any[] = [];
|
||||||
|
directory: any[] = [];
|
||||||
loading = true;
|
loading = true;
|
||||||
|
|
||||||
created()
|
created()
|
||||||
@@ -46,6 +47,12 @@
|
|||||||
{
|
{
|
||||||
if (result.success) this.courseInfo = result.data;
|
if (result.success) this.courseInfo = result.data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Get directory
|
||||||
|
App.http.post('/directory', {}).then(result =>
|
||||||
|
{
|
||||||
|
if (result.success) this.directory = result.data;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user