From d73ca0f46d3cf747f1333ca9e4c6d32d4d930bb6 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Sun, 2 Dec 2018 10:23:16 +0800 Subject: [PATCH] # disable statistic/settings nav menu --- src/router/index.js | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 5abd644..909442c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -61,7 +61,7 @@ export const constantRouterMap = [ icon: 'chart' }, children: [ - { path: 'index', component: () => import('@/views/counter/index'), name: 'statistic', meta: { title: 'statistic' }}, + // { path: 'index', component: () => import('@/views/counter/index'), name: 'statistic', meta: { title: 'statistic' }}, { path: 'device', component: () => import('@/views/counter/device'), name: 'device', meta: { title: 'device' }}, { path: 'detail', component: () => import('@/views/counter/detail'), name: 'detail', meta: { title: 'detail' }}, { path: 'logs', component: () => import('@/views/counter/logs'), name: 'logs', meta: { title: 'logs' }}, @@ -117,28 +117,28 @@ export const asyncRouterMap = [ // }] // }, - { - path: '/settings/device', - component: Layout, - meta: { roles: ['superadmin', 'admin'] }, - children: [{ - path: 'index', - component: () => import('@/views/settings/device'), - name: 'deviceSetting', - meta: { title: 'deviceSetting', icon: 'device', noCache: true } - }] - }, + // { + // path: '/settings/device', + // component: Layout, + // meta: { roles: ['superadmin', 'admin'] }, + // children: [{ + // path: 'index', + // component: () => import('@/views/settings/device'), + // name: 'deviceSetting', + // meta: { title: 'deviceSetting', icon: 'device', noCache: true } + // }] + // }, - { - path: '/settings/system', - component: Layout, - children: [{ - path: 'index', - component: () => import('@/views/settings/system'), - name: 'systemSetting', - meta: { title: 'systemSetting', icon: 'system', noCache: true } - }] - }, + // { + // path: '/settings/system', + // component: Layout, + // children: [{ + // path: 'index', + // component: () => import('@/views/settings/system'), + // name: 'systemSetting', + // meta: { title: 'systemSetting', icon: 'system', noCache: true } + // }] + // }, // { // path: '/components',