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'
/* 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,
{

View File

@ -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'),