调用组件时报错未注册
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
这时就需要看一下引用组件路径位置 是否有错。
问题可能如下:
- 组件是否引入
- 路径是否正确;
- 名称是否写入正确;
- 引入单个文件是否带有大括号 (此次出现这个错误就是 引入单个文件带了大括号) ...等等 欢迎大家补充
检查后解决就完事~