diff --git a/src/router/index.js b/src/router/index.js index 4b54d13..3d541e1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -162,6 +162,20 @@ export const dynamicRoutes = [ } ] }, + { + path: '/system/roomDetail', + component: Layout, + hidden: true, + permissions: ['system:room:list'], + children: [ + { + path: 'detail/:roomId(\\d+)', + component: () => import('@/views/system/room/room_detail'), + name: 'RoomDetail', + meta: { title: '房间详情', activeMenu: '/system/room' } + } + ] + }, { path: '/system/device/sn', component: Layout, @@ -245,7 +259,8 @@ export const dynamicRoutes = [ meta: { title: '用户详情', activeMenu: '/user/user' } } ] - } + }, + ] // 防止连续点击多次路由报错 diff --git a/src/views/system/room/index.vue b/src/views/system/room/index.vue index ac848b3..98a59c2 100644 --- a/src/views/system/room/index.vue +++ b/src/views/system/room/index.vue @@ -109,6 +109,9 @@ +