路由懒加载,还是压缩打包的js文件

This commit is contained in:
xing 2020-07-02 11:13:13 +08:00
parent 64aedb7466
commit 4aeccb8825

View File

@ -41,11 +41,11 @@ const routes = [
component: Home, component: Home,
redirect: '/welcome', redirect: '/welcome',
children: [ children: [
{ path: '/welcome', component: welcome }, {path: '/welcome', component: welcome},
{ path: '/users', component: users }, {path: '/users', component: users},
{ path: '/rights', component: access }, {path: '/rights', component: access},
{ path: '/roles', component: roles }, {path: '/roles', component: roles},
{ path: '/categories', component: categories }, {path: '/categories', component: categories},
{ path: '/params', component: params }, { path: '/params', component: params },
{ path: '/goods', component: goods }, { path: '/goods', component: goods },
{ path: '/goods/add', component: goodsEdit }, { path: '/goods/add', component: goodsEdit },