Vue动态加载组件:
this.component=() => import('./common/' + this.Child + '.vue'),
也可以使用
this.component=resolve => require.ensure([], () => resolve(require('./common/' + this.Child + '.vue')))
代替
展开
评论