DESKTOP-SVI9JE1\muzen 1 năm trước cách đây
mục cha
commit
9e15237d50
1 tập tin đã thay đổi với 33 bổ sung16 xóa
  1. 33 16
      src/router/index.js

+ 33 - 16
src/router/index.js

@@ -166,22 +166,23 @@ export const dynamicRoutes = [{
   }]
 },
 // 内容管理
-// 文章管理
-// {
-//   path: '/content',
-//   component: Layout,
-//   hidden: true,
-//   permissions: ['content:article:list'],
-//   children: [{
-//     path: 'articleList/detail',
-//     component: () => import('@/views/content/article/detail'),
-//     name: 'articleListDetail',
-//     meta: {
-//       title: '文章详情',
-//       activeMenu: '/content/articleList'
-//     }
-//   }]
-// },
+// 视频管理
+{
+  path: '/content',
+  component: Layout,
+  hidden: true,
+  permissions: ['content:video:list'],
+  name: 'videoList',
+  children: [{
+    path: 'video/detail',
+    component: () => import('@/views/content/video/detail'),
+    name: 'videoDetail',
+    meta: {
+      title: '视频详情',
+      activeMenu: '/content/video'
+    }
+  }]
+},
 // 设备管理
 // 设备列表
 {
@@ -200,6 +201,22 @@ export const dynamicRoutes = [{
     }
   }]
 },
+{
+  path: '/device',
+  component: Layout,
+  hidden: true,
+  permissions: ['device:category:list'],
+  name: 'category',
+  children: [{
+    path: 'category/detail',
+    component: () => import('@/views/device/category/detail'),
+    name: 'categoryDetail',
+    meta: {
+      title: '大类详情',
+      activeMenu: '/device/category'
+    }
+  }]
+},
 // 设备升级
 {
   path: '/device',