DESKTOP-O04BTUJ\muzen 2 vuotta sitten
vanhempi
commit
4bf651331b
1 muutettua tiedostoa jossa 43 lisäystä ja 60 poistoa
  1. 43 60
      src/router/index.js

+ 43 - 60
src/router/index.js

@@ -217,6 +217,23 @@ export const dynamicRoutes = [{
       }
     }]
   },
+  // 设备文章
+  {
+    path: '/device',
+    component: Layout,
+    hidden: true,
+    permissions: ['device:article:list'],
+    name: 'article',
+    children: [{
+      path: 'article/detail',
+      component: () => import('@/views/device/article/detail'),
+      name: 'articleDetail',
+      meta: {
+        title: '文章详情',
+        activeMenu: '/device/article'
+      }
+    }]
+  },
   // 音频管理
   // 歌手
   {
@@ -354,23 +371,6 @@ export const dynamicRoutes = [{
       }
     }]
   },
-  // 频道管理
-  // 定制频道
-  {
-    path: '/channel',
-    component: Layout,
-    hidden: true,
-    permissions: ['channel:custom:list'],
-    children: [{
-      path: 'custom/detail',
-      component: () => import('@/views/channel/custom/detail'),
-      name: 'channelCustomDetail',
-      meta: {
-        title: `定制详情`,
-        activeMenu: '/channel/custom'
-      }
-    }]
-  },
   // 项目管理
   // 项目列表
   {
@@ -388,40 +388,6 @@ export const dynamicRoutes = [{
       }
     }]
   },
-  // 智能手表
-  // 表盘管理
-  {
-    path: '/watch',
-    component: Layout,
-    hidden: true,
-    permissions: ['watch:list:list'],
-    children: [{
-      path: 'watchList/detail',
-      component: () => import('@/views/watch/list/detail'),
-      name: 'watchListDetail',
-      meta: {
-        title: `表盘详情`,
-        activeMenu: '/watch/watchList'
-      }
-    }]
-  },
-  // 标签管理
-  // 标签分类
-  {
-    path: '/label',
-    component: Layout,
-    hidden: true,
-    permissions: ['label:tag:list'],
-    children: [{
-      path: 'tag/detail',
-      component: () => import('@/views/label/tag/detail'),
-      name: 'labelTagDetail',
-      meta: {
-        title: '标签详情',
-        activeMenu: '/label/tag'
-      }
-    }]
-  },
   // 运营管理
   // 启动页
   {
@@ -439,20 +405,37 @@ export const dynamicRoutes = [{
       }
     }]
   },
-  // 文章管理
-  // 设备文章
+  // 定制频道
+  {
+    path: '/operation',
+    component: Layout,
+    hidden: true,
+    permissions: ['operation:channel:list'],
+    name: 'channel',
+    children: [{
+      path: 'custom/detail',
+      component: () => import('@/views/operation/channel/detail'),
+      name: 'channelDetail',
+      meta: {
+        title: `频道详情`,
+        activeMenu: '/operation/channel'
+      }
+    }]
+  },
+  // 标签分类
   {
-    path: '/article',
+    path: '/operation',
     component: Layout,
     hidden: true,
-    permissions: ['article:list:list'],
+    permissions: ['operation:tag:list'],
+    name: 'tag',
     children: [{
-      path: 'articleList/detail',
-      component: () => import('@/views/article/list/detail'),
-      name: 'articleListDetail',
+      path: 'tag/detail',
+      component: () => import('@/views/operation/tag/detail'),
+      name: 'tagDetail',
       meta: {
-        title: '文章详情',
-        activeMenu: '/article/articleList'
+        title: '标签详情',
+        activeMenu: '/operation/tag'
       }
     }]
   },