feat(收藏): 实现课程收藏功能并优化相关页面
- 新增 `favorite.js` API 文件,提供收藏列表、新增和取消收藏的接口 - 在 `CourseDetailPage.vue` 中实现收藏和取消收藏的逻辑,并添加交互反馈 - 在 `MyFavoritesPage.vue` 中替换模拟数据为真实接口调用,优化收藏课程加载逻辑 - 调整 `jsconfig.json` 配置文件,包含新增的 API 文件路径
Showing
4 changed files
with
77 additions
and
39 deletions
src/api/favorite.js
0 → 100644
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment