diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index cb2d0af4..a4ba50e1 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -47,35 +47,6 @@ export const constantRouterMap = [ } ] }, - { - path: '/nodes', - component: Layout, - meta: { - title: 'Node', - icon: 'fa fa-server' - }, - children: [ - { - path: '', - name: 'NodeList', - component: () => import('../views/node/NodeList'), - meta: { - title: 'Nodes', - icon: 'fa fa-server' - } - }, - { - path: ':id', - name: 'NodeDetail', - component: () => import('../views/node/NodeDetail'), - meta: { - title: 'Node Detail', - icon: 'fa fa-circle-o' - }, - hidden: true - } - ] - }, { path: '/spiders', component: Layout, @@ -155,21 +126,49 @@ export const constantRouterMap = [ ] }, { - path: '/sites', + path: '/nodes', component: Layout, - hidden: true, meta: { - title: 'Site', - icon: 'fa fa-sitemap' + title: 'Node', + icon: 'fa fa-server' }, children: [ { path: '', - name: 'SiteList', - component: () => import('../views/site/SiteList'), + name: 'NodeList', + component: () => import('../views/node/NodeList'), meta: { - title: 'Sites', - icon: 'fa fa-sitemap' + title: 'Nodes', + icon: 'fa fa-server' + } + }, + { + path: ':id', + name: 'NodeDetail', + component: () => import('../views/node/NodeDetail'), + meta: { + title: 'Node Detail', + icon: 'fa fa-circle-o' + }, + hidden: true + } + ] + }, + { + path: '/disclaimer', + component: Layout, + meta: { + title: 'Disclaimer', + icon: 'fa fa-exclamation-triangle' + }, + children: [ + { + path: '', + name: 'Disclaimer', + component: () => import('../views/doc/Disclaimer'), + meta: { + title: 'Disclaimer', + icon: 'fa fa-exclamation-triangle' } } ] @@ -193,25 +192,6 @@ export const constantRouterMap = [ } ] }, - { - path: '/disclaimer', - component: Layout, - meta: { - title: 'Disclaimer', - icon: 'fa fa-exclamation-triangle' - }, - children: [ - { - path: '', - name: 'Disclaimer', - component: () => import('../views/doc/Disclaimer'), - meta: { - title: 'Disclaimer', - icon: 'fa fa-exclamation-triangle' - } - } - ] - }, { path: '/setting', component: Layout,