Commit 97ff860d by zhangquan

添加修改

1 parent 861bd072
...@@ -25,7 +25,7 @@ VueRouter.prototype.push = function push(location) { ...@@ -25,7 +25,7 @@ VueRouter.prototype.push = function push(location) {
// } // }
function getRoutes(routesData) { function getRoutes(routesData) {
return routesData.reduce((routes, route) => { return routesData.reduce((routes, route) => {
routes.push({ ...route, component: () => import('@/views' + route.path + '.vue') }) routes.push({ ...route, component: () => import('@/views' + route.compath + '.vue') })
return routes return routes
}, []) }, [])
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!