Javascript VueJs使用嵌套组件并获取未知自定义元素错误
定义一些组件并在页面内使用后,例如:Javascript VueJs使用嵌套组件并获取未知自定义元素错误,javascript,vue.js,vuejs2,Javascript,Vue.js,Vuejs2,定义一些组件并在页面内使用后,例如: ... ... ... ... 定义为类别树视图和类别列表视图的组件都可以正常工作,现在我想用另一个组件(如类别)来包装它们,例如: 。。。 这里我得到了这个错误: [Vue warn]: Unknown custom element: <categories-tree-view> - did you register the component correctly? For recursive component
...
...
-
-
...
...
定义为类别树视图
和类别列表视图
的组件都可以正常工作,现在我想用另一个组件(如类别
)来包装它们,例如:
。。。
-
-
这里我得到了这个错误:
[Vue warn]: Unknown custom element: <categories-tree-view>
- did you register the component correctly? For recursive components,
make sure to provide the "name" option.
found in
---> <Categories>
<Root> app.js:833:15
[Vue warn]: Unknown custom element: <categories-list-view>
- did you register the component correctly? For recursive components,
make sure to provide the "name" option.
您需要在“类别”组件中导入它们,或使用插槽