From ae1f77087915491d131b0e491440e2ac2a00e4a2 Mon Sep 17 00:00:00 2001 From: xwb <717567226@qq.com> Date: Thu, 23 Apr 2020 12:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=B2=A1=E5=8F=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/routers.js b/src/router/routers.js index f0bfb67..d3b37ae 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -27,7 +27,7 @@ export const constantRouterMap = [ children: [ { path: '/redirect/:path*', - component: () => import('@/views/features/redirect') + component: (resolve) => require(['@/views/features/redirect'], resolve) } ] }, @@ -38,7 +38,7 @@ export const constantRouterMap = [ children: [ { path: 'dashboard', - component: () => import('@/views/home'), + component: (resolve) => require(['@/views/home'], resolve), name: 'Dashboard', meta: { title: '首页', icon: 'index', affix: true, noCache: true } } @@ -52,7 +52,7 @@ export const constantRouterMap = [ children: [ { path: 'center', - component: () => import('@/views/system/user/center'), + component: (resolve) => require(['@/views/system/user/center'], resolve), name: '个人中心', meta: { title: '个人中心' } }