# Task-03-03 **Repository Path**: fishlyn/task-03-03 ## Basic Information - **Project Name**: Task-03-03 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Part3 模块三 作业 **使用NuxtJS实现 RealWorld 全部功能 https://demo.realworld.io/#/** 页面展示地址:http://8.129.61.140:3000/ 全接口展示: Authentication: 登录接口 `POST /api/users/login` --- 已实现 Registration: 注册接口 `POST /api/users` --- 已实现 Get Current User: 获取当前用户信息 `GET /api/user` --- 已实现 Update User: 更新用户信息 `PUT /api/user` --- 已实现 Get Profile: 获取当前账户信息 `GET /api/profiles/:username` --- 已实现 Follow user: 关注用户 `POST /api/profiles/:username/follow` --- 已实现 Unfollow user: 取消关注用户 `DELETE /api/profiles/:username/follow` --- 已实现 List Articles: 获取所有文章列表 `GET /api/articles` --- 已实现 Feed Articles: 获取关注用户的文章列表 `GET /api/articles/feed` --- 已实现 Get Article: 获取当前文章详情 `GET /api/articles/:slug` --已实现 Create Article: 创建新的文章 `POST /api/articles` --- 已实现 Update Article: 更新文章 `PUT /api/articles/:slug` --- 已实现 Delete Article: 删除文章 `DELETE /api/articles/:slug` --- 已实现 Add Comments to an Article: 添加评论 `POST /api/articles/:slug/comments` --- 已实现 Get Comments from an Article: 获取文章评论列表 `GET /api/articles/:slug/comments` --- 已实现 Delete Comment: 删除评论 `DELETE /api/articles/:slug/comments/:id` --- 已实现 Favorite Article: 将文章标注为喜欢 `POST /api/articles/:slug/favorite` --- 已实现 Unfavorite Article: 取消喜欢文章标注 `DELETE /api/articles/:slug/favorite` --- 已实现 Get Tags: 获取标签列表 `GET /api/tags` --- 已实现 1. 解决导航栏 home 页面在切换到 your_feed 和 tag 标签不高亮显示的问题 * 清除 home 链接的 exact 属性 2. 添加 article-meta 组件 关注和喜爱 功能 3. 新增添加评论的功能 4. 新增删除评论功能,在登录状态下能删除自己的评论 5. 通过 beforeRouteEnter 钩子函数,记录跳转到登录注册页面的上级路由地址,在登录注册成功后返回到上级路由 6. 新增创建文章界面,实现增删tag标签以及提交文章并跳转到详情页 7. 首页新增文章列表的 tag 标签显示