feat: add useCourse composable for comprehensive course management and create a new dashboard page.

This commit is contained in:
supalerk-ar66 2026-02-11 17:28:48 +07:00
parent a4772931ac
commit 883e08c6ed
2 changed files with 3 additions and 1 deletions

View file

@ -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) => ({