Vue.js动态导入组件导致未加载引导程序

时间:2019-09-25 05:21:10

标签: laravel vue.js webpack

加载页面后,我会在vuejs中强制在路由器中动态导入组件。

//.babelrc
"plugins": [
        "dynamic-import-webpack"
      ],

//.route.js
const myRoutes = [
    {
        path: '/admin, component: RouterViewComponent,
        children: [
            { path: '/', component:  () => import('../components/myComponent.vue'), name: 'my-component' }
        ]
    }
]

0 个答案:

没有答案