소스 검색

路由文件

DESKTOP-O04BTUJ\muzen 3 년 전
부모
커밋
0b9eb3a8d9
1개의 변경된 파일20개의 추가작업 그리고 2개의 파일을 삭제
  1. 20 2
      src/router/index.js

+ 20 - 2
src/router/index.js

@@ -68,7 +68,7 @@ export const constantRoutes = [{
       name: 'Index',
       name: 'Index',
       meta: {
       meta: {
         title: '首页',
         title: '首页',
-        icon: 'dashboard',
+        icon: 'home',
         affix: true
         affix: true
       }
       }
     }]
     }]
@@ -182,7 +182,7 @@ export const dynamicRoutes = [{
     }]
     }]
   },
   },
   // 设备管理
   // 设备管理
-  // 设备类型
+  // 设备列表
   {
   {
     path: '/device',
     path: '/device',
     component: Layout,
     component: Layout,
@@ -295,6 +295,7 @@ export const dynamicRoutes = [{
       }
       }
     }]
     }]
   },
   },
+  // 场景模式
   {
   {
     path: "/music",
     path: "/music",
     component: Layout,
     component: Layout,
@@ -359,6 +360,23 @@ export const dynamicRoutes = [{
         activeMenu: '/project/projectList'
         activeMenu: '/project/projectList'
       }
       }
     }]
     }]
+  },
+  // 智能手表
+  // 表盘管理
+  {
+    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'
+      }
+    }]
   }
   }
 ]
 ]