导入组件避坑Unknown custom element: <NewLushu> - did you register the component correctly?

vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: <NewLushu> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

原因:

我的代码:导入组件避坑Unknown custom element: <NewLushu> - did you register the component correctly?

 改正后:import NewLushu from './components/NewLushu.vue'

总结:导入组件的时候 用了{ xxx组件名 },导入组件时不需要加{}

上一篇:registerForActivityResult常规用法


下一篇:ADS1115芯片快速开发