|
|
@@ -16,6 +16,7 @@ const routes = [
|
|
|
component: () => import('@/views/home/index.vue'),
|
|
|
meta: { title: 'bili' }
|
|
|
},
|
|
|
+ /* 用户稿件模块 */
|
|
|
{
|
|
|
path: '/studio',
|
|
|
name: 'Studio',
|
|
|
@@ -105,6 +106,7 @@ const routes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ /* 用户状态模块 */
|
|
|
{
|
|
|
path: '/u/:userId',
|
|
|
name: 'UserHome',
|
|
|
@@ -153,6 +155,7 @@ const routes = [
|
|
|
title: '用户状态'
|
|
|
}
|
|
|
},
|
|
|
+ /* 用户帐号模块 */
|
|
|
{
|
|
|
path: '/user',
|
|
|
name: 'UserCenter',
|
|
|
@@ -217,6 +220,7 @@ const routes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ /* VIP 用户模块 */
|
|
|
{
|
|
|
path: '/vip',
|
|
|
name: 'VipCenter',
|
|
|
@@ -252,6 +256,7 @@ const routes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ /* 消息模块 */
|
|
|
{
|
|
|
path: '/message',
|
|
|
name: 'Message',
|
|
|
@@ -272,18 +277,7 @@ const routes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- path: '/live',
|
|
|
- name: 'Live',
|
|
|
- component: () => import('@/views/home/live.vue'),
|
|
|
- meta: { title: 'bili 直播' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/channel',
|
|
|
- name: 'Channel',
|
|
|
- component: () => import('@/views/home/channel.vue'),
|
|
|
- meta: { title: 'bili 分区' }
|
|
|
- },
|
|
|
+ /* 状态模块 */
|
|
|
{
|
|
|
path: '/mblog',
|
|
|
name: 'Mblog',
|
|
|
@@ -320,23 +314,78 @@ const routes = [
|
|
|
component: () => import('@/views/home/tag-result.vue'),
|
|
|
meta: { title: 'bili 视频标签' }
|
|
|
},
|
|
|
+ /* 视频模块 */
|
|
|
{
|
|
|
- path: '/video/:id',
|
|
|
+ path: '/video',
|
|
|
name: 'Video',
|
|
|
+ component: () => import('@/views/video/index.vue'),
|
|
|
+ meta: { title: '视频' },
|
|
|
+ children: [
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/video/:id',
|
|
|
+ name: 'VideoPage',
|
|
|
component: () => import('@/views/video/video.vue'),
|
|
|
- meta: { title: '视频播放' }
|
|
|
+ meta: { title: '视频页面' }
|
|
|
},
|
|
|
+ /* 音频模块 */
|
|
|
{
|
|
|
- path: '/audio/:id',
|
|
|
+ path: '/audio',
|
|
|
name: 'Audio',
|
|
|
- component: () => import('@/views/video/audio.vue'),
|
|
|
- meta: { title: '音频播放' }
|
|
|
+ component: () => import('@/views/audio/index.vue'),
|
|
|
+ meta: { title: '音频' },
|
|
|
+ children: [
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/audio/:id',
|
|
|
+ name: 'AudioPage',
|
|
|
+ component: () => import('@/views/audio/audio.vue'),
|
|
|
+ meta: { title: '音频页面' }
|
|
|
},
|
|
|
+ /* 图片模块 */
|
|
|
+ {
|
|
|
+ path: '/image',
|
|
|
+ name: 'Image',
|
|
|
+ component: () => import('@/views/image/index.vue'),
|
|
|
+ meta: { title: '图片' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/article/:id',
|
|
|
+ name: 'ArticlePage',
|
|
|
+ component: () => import('@/views/message/home.vue'),
|
|
|
+ meta: { title: '文章主页' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ /* 文章模块 */
|
|
|
+ {
|
|
|
+ path: '/article',
|
|
|
+ name: 'Article',
|
|
|
+ component: () => import('@/views/article/index.vue'),
|
|
|
+ meta: { title: '文章' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/article/:id',
|
|
|
+ name: 'ArticlePage',
|
|
|
+ component: () => import('@/views/message/home.vue'),
|
|
|
+ meta: { title: '文章主页' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ /* 直播模块 */
|
|
|
{
|
|
|
path: '/live',
|
|
|
name: 'live',
|
|
|
component: () => import('@/views/live/index.vue'),
|
|
|
meta: { title: '直播1' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/live',
|
|
|
+ name: 'Live',
|
|
|
+ component: () => import('@/views/home/live.vue'),
|
|
|
+ meta: { title: 'bili 直播' }
|
|
|
}
|
|
|
]
|
|
|
},
|