vue组件未找到报错
vue报错:#Unknown custom element: <todo-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option.原因:1.引用子组件要注册并且声明componets里,未声明会报错2.存在组件嵌套会出现报错,将子组件声明为全局组件即可,引用时不需要再注册和声明,直接使用impor..
原创
2021-02-24 14:32:42 ·
1153 阅读 ·
0 评论