当我们正常的注册组件,正常的引用组件,还是报错 组件没有正常的注册,如下图:
解决方法:
将原来的 import xxx from ‘xx/xx/xxx’ components:{ xxx }
更改成: components: { xxx: () => import(“xx/xx/xxx”), },
当我们正常的注册组件,正常的引用组件,还是报错 组件没有正常的注册,如下图:
解决方法:
将原来的 import xxx from ‘xx/xx/xxx’ components:{ xxx }
更改成: components: { xxx: () => import(“xx/xx/xxx”), },
相关文章: