Commit 97ff860d by zhangquan

添加修改

1 parent 861bd072
......@@ -25,7 +25,7 @@ VueRouter.prototype.push = function push(location) {
// }
function getRoutes(routesData) {
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
}, [])
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!