feat: add useCourse composable for comprehensive course management and create a new dashboard page.
This commit is contained in:
parent
a4772931ac
commit
883e08c6ed
2 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ onMounted(async () => {
|
|||
|
||||
// 2. Fetch 3 Random Courses from Server
|
||||
// ดึงคอร์สแบบสุ่มจาก Server โดยตรง (ผ่าน API ใหม่ที่เพิ่ม parameter random และ limit)
|
||||
const res = await fetchCourses({ random: true, limit: 3, forceRefresh: true })
|
||||
const res = await fetchCourses({ random: true, limit: 3, forceRefresh: true, is_recommended: true })
|
||||
|
||||
if (res.success && res.data?.length) {
|
||||
recommendedCourses.value = res.data.map((c: any) => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue