diff --git a/src/router/index.js b/src/router/index.js index 96d7225..16c5756 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -68,7 +68,10 @@ export const constantRoutes = [ children: [ { path: 'index', - component: () => import('@/views/index'), + component: (route) => { + console.log('route:', route); + return import('@/views/index') + }, name: 'Index', meta: { title: '首页', icon: 'dashboard', affix: true } } diff --git a/src/views/dashboard/PanelGroup.vue b/src/views/dashboard/PanelGroup.vue index 5515638..46c5d4e 100644 --- a/src/views/dashboard/PanelGroup.vue +++ b/src/views/dashboard/PanelGroup.vue @@ -36,16 +36,16 @@ -