From 1f60f31563ccf1f63764f099dcf56495881628fe Mon Sep 17 00:00:00 2001 From: ahanhanhan Date: Tue, 2 Apr 2024 11:48:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 5 ++++- src/views/dashboard/PanelGroup.vue | 15 +++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) 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 @@ -