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

Commit

Permalink
fix(user): (#558) 游客模式可进入找人模块,不可进入他人个人主页、动态详情、资讯详情
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 16, 2018
1 parent 63a60e0 commit 7973952
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/routers/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default [
component: Find,
meta: {
title: "找人",
requiresAuth: true
requiresAuth: false
},
children: [
{
Expand Down Expand Up @@ -108,7 +108,8 @@ export default [
component: UserHome,
meta: {
title: "个人主页",
keepAlive: true
keepAlive: true,
requiresAuth: true
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion src/routers/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export default [
{
path: "/feeds/:feedID(\\d+)",
component: FeedDetail,
meta: { title: "动态详情", keepAlive: true }
meta: {
title: "动态详情",
keepAlive: true,
requiresAuth: true
}
},

/**
Expand Down
3 changes: 2 additions & 1 deletion src/routers/news.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export default [
component: NewsDetail,
meta: {
title: "资讯详情",
keepAlive: true
keepAlive: true,
requiresAuth: true
}
},
{
Expand Down

0 comments on commit 7973952

Please sign in to comment.