1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00

update sidebar

This commit is contained in:
handsomewu 2024-11-12 23:43:45 +08:00
parent 01b6dcf56d
commit 587134e5c6
2 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,7 @@ Vue.use(Router)
import Layout from '@/layout' import Layout from '@/layout'
/* Router Modules */ /* Router Modules */
import componentsRouter from './modules/components' // import componentsRouter from './modules/components'
import chartsRouter from './modules/charts' import chartsRouter from './modules/charts'
import tableRouter from './modules/table' import tableRouter from './modules/table'
// import nestedRouter from './modules/nested' // import nestedRouter from './modules/nested'
@ -116,7 +116,6 @@ export const constantRoutes = [
*/ */
export const asyncRoutes = [ export const asyncRoutes = [
/** when your routing map is too long, you can split it into small modules **/ /** when your routing map is too long, you can split it into small modules **/
componentsRouter,
chartsRouter, chartsRouter,
tableRouter, tableRouter,
{ {

View File

@ -12,6 +12,12 @@ const chartsRouter = {
icon: 'tree' icon: 'tree'
}, },
children: [ children: [
{
path: 'keyboard',
component: () => import('@/views/charts/keyboard'),
name: 'KeyboardChart',
meta: { title: '查看最短路径', noCache: true }
},
{ {
path: 'keyboard', path: 'keyboard',
component: () => import('@/views/charts/keyboard'), component: () => import('@/views/charts/keyboard'),