错误:
vue.js:634 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
原因:引用了插件,却没有在main.js里使用。
解决方法:先把对应的插件import进来,在加上Vue.use(…); 。比如这里是用到了v-charts,就如此:
import VCharts from 'v-charts';
Vue.use(VCharts);
手机扫一扫
移动阅读更方便
你可能感兴趣的文章