From 587134e5c6c32474b98405843ab66d89d28be9e0 Mon Sep 17 00:00:00 2001 From: handsomewu <562390063@qq.com> Date: Tue, 12 Nov 2024 23:43:45 +0800 Subject: [PATCH] update sidebar --- src/router/index.js | 3 +-- src/router/modules/charts.js | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 26cba844..df41c175 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,7 +7,7 @@ Vue.use(Router) import Layout from '@/layout' /* Router Modules */ -import componentsRouter from './modules/components' +// import componentsRouter from './modules/components' import chartsRouter from './modules/charts' import tableRouter from './modules/table' // import nestedRouter from './modules/nested' @@ -116,7 +116,6 @@ export const constantRoutes = [ */ export const asyncRoutes = [ /** when your routing map is too long, you can split it into small modules **/ - componentsRouter, chartsRouter, tableRouter, { diff --git a/src/router/modules/charts.js b/src/router/modules/charts.js index 8a160e62..20ef4862 100644 --- a/src/router/modules/charts.js +++ b/src/router/modules/charts.js @@ -12,6 +12,12 @@ const chartsRouter = { icon: 'tree' }, children: [ + { + path: 'keyboard', + component: () => import('@/views/charts/keyboard'), + name: 'KeyboardChart', + meta: { title: '查看最短路径', noCache: true } + }, { path: 'keyboard', component: () => import('@/views/charts/keyboard'),