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