|
@@ -105,24 +105,27 @@ const routes = [
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/u/:userId',
|
|
|
|
|
+ name: 'UserHome',
|
|
|
|
|
+ component: () => import('@/views/user/home.vue'),
|
|
|
|
|
+ meta: { title: '用户主页' }
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
path: '/user',
|
|
path: '/user',
|
|
|
- name: 'User',
|
|
|
|
|
- component: () => import('@/views/user/index.vue'),
|
|
|
|
|
- meta: { title: '用户中心' },
|
|
|
|
|
|
|
+ name: 'UserCenter',
|
|
|
|
|
+ component: () => import('@/views/user/userindex.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '个人中心',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
- path: '/u/:userId',
|
|
|
|
|
|
|
+ path: '/user/home',
|
|
|
name: 'UserHome',
|
|
name: 'UserHome',
|
|
|
component: () => import('@/views/user/home.vue'),
|
|
component: () => import('@/views/user/home.vue'),
|
|
|
- meta: { title: '用户主页' }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user',
|
|
|
|
|
- name: 'UserSetting',
|
|
|
|
|
- component: () => import('@/views/user/setting.vue'),
|
|
|
|
|
meta: {
|
|
meta: {
|
|
|
- title: '账户设置',
|
|
|
|
|
|
|
+ title: '个人中心',
|
|
|
requireAuth: true
|
|
requireAuth: true
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -139,121 +142,133 @@ const routes = [
|
|
|
path: '/user/favlist',
|
|
path: '/user/favlist',
|
|
|
name: 'UserFavlist',
|
|
name: 'UserFavlist',
|
|
|
component: () => import('@/views/user/favlist.vue'),
|
|
component: () => import('@/views/user/favlist.vue'),
|
|
|
- meta: { title: '收藏列表' }
|
|
|
|
|
|
|
+ meta: { title: '收藏列表',
|
|
|
|
|
+ requireAuth: true }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/user/playlist',
|
|
path: '/user/playlist',
|
|
|
name: 'UserPlaylist',
|
|
name: 'UserPlaylist',
|
|
|
component: () => import('@/views/user/playlist.vue'),
|
|
component: () => import('@/views/user/playlist.vue'),
|
|
|
- meta: { title: '稍后再看' }
|
|
|
|
|
|
|
+ meta: { title: '稍后再看',
|
|
|
|
|
+ requireAuth: true }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/user/hislist',
|
|
path: '/user/hislist',
|
|
|
name: 'UserHislist',
|
|
name: 'UserHislist',
|
|
|
component: () => import('@/views/user/hislist.vue'),
|
|
component: () => import('@/views/user/hislist.vue'),
|
|
|
- meta: { title: '历史记录' }
|
|
|
|
|
|
|
+ meta: { title: '历史记录',
|
|
|
|
|
+ requireAuth: true }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/user/follow',
|
|
path: '/user/follow',
|
|
|
name: 'UserFollow',
|
|
name: 'UserFollow',
|
|
|
component: () => import('@/views/user/follow.vue'),
|
|
component: () => import('@/views/user/follow.vue'),
|
|
|
- meta: { title: '关注管理' }
|
|
|
|
|
|
|
+ meta: { title: '关注管理',
|
|
|
|
|
+ requireAuth: true }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/user/vip',
|
|
path: '/user/vip',
|
|
|
name: 'UserVip',
|
|
name: 'UserVip',
|
|
|
component: () => import('@/views/user/vip.vue'),
|
|
component: () => import('@/views/user/vip.vue'),
|
|
|
- meta: { title: '小会员' }
|
|
|
|
|
|
|
+ meta: { title: '小会员',
|
|
|
|
|
+ requireAuth: true }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/user/loginhistory',
|
|
path: '/user/loginhistory',
|
|
|
name: 'LoginHistory',
|
|
name: 'LoginHistory',
|
|
|
component: () => import('@/views/user/LoginHistory.vue'),
|
|
component: () => import('@/views/user/LoginHistory.vue'),
|
|
|
- meta: { title: '登录历史' }
|
|
|
|
|
|
|
+ meta: { title: '登录历史',
|
|
|
|
|
+ requireAuth: true }
|
|
|
}
|
|
}
|
|
|
- /* {
|
|
|
|
|
- path: '/user/studio',
|
|
|
|
|
- name: 'StudioIndex',
|
|
|
|
|
- component: () => import('@/views/studio/index.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '个人中心',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user/upload',
|
|
|
|
|
- name: 'Upload',
|
|
|
|
|
- component: () => import('@/views/studio/upload.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '投稿',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user/post',
|
|
|
|
|
- name: 'Post',
|
|
|
|
|
- component: () => import('@/views/studio/post.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '稿件列表',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user/comment',
|
|
|
|
|
- name: 'Comment',
|
|
|
|
|
- component: () => import('@/views/studio/comment.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '评论',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user/admin/invitation',
|
|
|
|
|
- name: 'invitation',
|
|
|
|
|
- component: () => import('@/views/admin/invitation.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '邀请码',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user/admin/examine',
|
|
|
|
|
- name: 'Examine',
|
|
|
|
|
- component: () => import('@/views/admin/examine.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '审核视频',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user/admin/userlist',
|
|
|
|
|
- name: 'Examine',
|
|
|
|
|
- component: () => import('@/views/admin/user-list.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '用户列表',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user/admin/websetting',
|
|
|
|
|
- name: 'Examine',
|
|
|
|
|
- component: () => import('@/views/admin/web-setting.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '网页设置',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/user/admin/category',
|
|
|
|
|
- name: 'Examine',
|
|
|
|
|
- component: () => import('@/views/admin/category.vue'),
|
|
|
|
|
- meta: {
|
|
|
|
|
- title: '分区设置',
|
|
|
|
|
- requireAuth: true
|
|
|
|
|
- }
|
|
|
|
|
- }*/
|
|
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ /*
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user',
|
|
|
|
|
+ name: 'User',
|
|
|
|
|
+ component: () => import('@/views/user/index.vue')
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/studio',
|
|
|
|
|
+ name: 'StudioIndex',
|
|
|
|
|
+ component: () => import('@/views/studio/index.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '个人中心',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/upload',
|
|
|
|
|
+ name: 'Upload',
|
|
|
|
|
+ component: () => import('@/views/studio/upload.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '投稿',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/post',
|
|
|
|
|
+ name: 'Post',
|
|
|
|
|
+ component: () => import('@/views/studio/post.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '稿件列表',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/comment',
|
|
|
|
|
+ name: 'Comment',
|
|
|
|
|
+ component: () => import('@/views/studio/comment.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '评论',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/admin/invitation',
|
|
|
|
|
+ name: 'invitation',
|
|
|
|
|
+ component: () => import('@/views/admin/invitation.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '邀请码',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/admin/examine',
|
|
|
|
|
+ name: 'Examine',
|
|
|
|
|
+ component: () => import('@/views/admin/examine.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '审核视频',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/admin/userlist',
|
|
|
|
|
+ name: 'Examine',
|
|
|
|
|
+ component: () => import('@/views/admin/user-list.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '用户列表',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/admin/websetting',
|
|
|
|
|
+ name: 'Examine',
|
|
|
|
|
+ component: () => import('@/views/admin/web-setting.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '网页设置',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/user/admin/category',
|
|
|
|
|
+ name: 'Examine',
|
|
|
|
|
+ component: () => import('@/views/admin/category.vue'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ title: '分区设置',
|
|
|
|
|
+ requireAuth: true
|
|
|
|
|
+ }
|
|
|
|
|
+ }*/
|
|
|
{
|
|
{
|
|
|
path: '/message',
|
|
path: '/message',
|
|
|
name: 'Message',
|
|
name: 'Message',
|
|
@@ -290,7 +305,7 @@ const routes = [
|
|
|
path: '/mblog',
|
|
path: '/mblog',
|
|
|
name: 'Mblog',
|
|
name: 'Mblog',
|
|
|
component: () => import('@/views/home/mblog.vue'),
|
|
component: () => import('@/views/home/mblog.vue'),
|
|
|
- meta: { title: 'HerTube 微博' }
|
|
|
|
|
|
|
+ meta: { title: 'HerTube 状态' }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/zhihu',
|
|
path: '/zhihu',
|