组件懒加载

{
    '/index/:page': {
      name: 'index',
      title: '全部',
      component: (resolve) => require(['./components/main/index.vue'], resolve)
    },

推荐阅读更多精彩内容