vue组件注册方式

1.全局注册

在main.js中进行添加与注册

 2.局部注册

在需要引入的文件里进行路径上的引入并在components里声明

 

原文地址:https://www.cnblogs.com/yangc6925/p/15548674.html