index.js
305 Bytes
import layout from './layout';
import product from './product';
let routers = [product];
let childrenRoutes = [].concat(...routers);
let routes = [{
path: '/',
component: layout,
children: childrenRoutes
}];
import auth from './auth';
routes = routes.concat(auth);
export default routes;