Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
feat: (#273) 圈子帖子打赏页面路由
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jul 3, 2018
1 parent 3316c53 commit b7ab111
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/routers/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import Groups from "@/page/group/Groups.vue";
import GroupsForUser from "@/page/group/GroupsForUser.vue";
import GroupDetail from "@/page/group/GroupDetail.vue";
import GroupsPostDetail from "@/page/group/GroupPostDetail.vue";
import likes from "@/page/article/ArticleLikes.vue";
import rewards from "@/page/article/ArticleRewards.vue";

export default [
{
path: "/group",
Expand Down Expand Up @@ -53,5 +56,31 @@ export default [
keepAlive: true,
requiresAuth: true
}
},
/**
* 点赞列表 && 打赏列表 路由格式固定
*
* 帖子/资讯/问答 相关路由 统一使用 article 代替 id
*
* 通过传递 不同的 meta[type] 实现组件复用
*
* copy by @/routers/feed.js
*
*/
{
path: "/groups/:groupID(\\d+)/posts/:article(\\d+)/likers",
component: likes,
meta: {
title: "点赞列表",
type: "post"
}
},
{
path: "/groups/:groupID(\\d+)/posts/:article(\\d+)/rewarders",
component: rewards,
meta: {
title: "打赏列表",
type: "post"
}
}
];

0 comments on commit b7ab111

Please sign in to comment.