赞
踩
vue.esm.js:5105 [Vue warn]: Unknown custom element: <组件名称> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
如果遇到递归式调用组件,比如说A组件调用了B组件,B组件调用了C组件,C组件又调用了A组件之类的,所以需要将import引入改为components内部引入:
- ...
-
- components: {
- 组件名称: (d) => import("@/vue/components/xxx/组件名称"), //解决递归加载组件报错
- },
-
- ...
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。