报错
vue.runtime.esm.js?c320:4573 [Vue warn]: Unknown custom element: <CommentList> - did you register the component correctly? For recursive components, make sure to provide the "name" option
不知道为什么一直报错然后把组件名字修改成用短横线链接的就改好了 nonono 总结到一半发现又出了问题
又查了一圈 是因为 父子组件相互应用形成的嵌套 解决方案是父子组件都采用异步引入组件
components: {
CommentList: () => import('@/views/Detail/Components/CommentList.vue'),
CommentItem: () => import('@/views/Detail/Components/CommentItem.vue')
},