vue-cli3 更新之后,引入组件import chezhuliebiao from ‘…/owner/owner_list’ 会报错:Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.

  • 后来找到原因 cli3中引入组件必须带 .vue后缀 否则就报错。
Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐