|
@@ -92,6 +92,7 @@ export const constantRoutes = [{
|
|
// 动态路由,基于用户权限动态去加载
|
|
// 动态路由,基于用户权限动态去加载
|
|
export const dynamicRoutes = [
|
|
export const dynamicRoutes = [
|
|
//****************** 内容管理 *******************//
|
|
//****************** 内容管理 *******************//
|
|
|
|
+
|
|
// 视频管理
|
|
// 视频管理
|
|
{
|
|
{
|
|
path: '/content',
|
|
path: '/content',
|
|
@@ -110,6 +111,25 @@ export const dynamicRoutes = [
|
|
}
|
|
}
|
|
}]
|
|
}]
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ // 文章管理
|
|
|
|
+ {
|
|
|
|
+ path: '/content',
|
|
|
|
+ name: 'articleIndex',
|
|
|
|
+ component: Layout,
|
|
|
|
+ hidden: true,
|
|
|
|
+ permissions: ['content:articleList:list'],
|
|
|
|
+ children: [{
|
|
|
|
+ path: 'articleList/detail',
|
|
|
|
+ component: () => import('@/views/content/article/detail'),
|
|
|
|
+ name: 'articleDetail',
|
|
|
|
+ meta: {
|
|
|
|
+ title: '文章详情',
|
|
|
|
+ activeMenu: '/content/articleList'
|
|
|
|
+ }
|
|
|
|
+ }]
|
|
|
|
+ },
|
|
|
|
+
|
|
{
|
|
{
|
|
path: '/system/user-auth',
|
|
path: '/system/user-auth',
|
|
component: Layout,
|
|
component: Layout,
|
|
@@ -203,23 +223,7 @@ export const dynamicRoutes = [
|
|
}
|
|
}
|
|
}]
|
|
}]
|
|
},
|
|
},
|
|
- // 文章管理
|
|
|
|
- {
|
|
|
|
- path: '/content',
|
|
|
|
- component: Layout,
|
|
|
|
- hidden: true,
|
|
|
|
- permissions: ['content:articleList:list'],
|
|
|
|
- name: 'articleList',
|
|
|
|
- children: [{
|
|
|
|
- path: 'articleList/detail',
|
|
|
|
- component: () => import('@/views/content/article/detail'),
|
|
|
|
- name: 'articleDetail',
|
|
|
|
- meta: {
|
|
|
|
- title: '文章详情',
|
|
|
|
- activeMenu: '/content/articleList'
|
|
|
|
- }
|
|
|
|
- }]
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
// 设备管理
|
|
// 设备管理
|
|
// 设备列表
|
|
// 设备列表
|
|
{
|
|
{
|