首页 > 技术文章 > 全局注册组件

summerXll 2018-08-28 15:23 原文

在main.js中,引用需要全局的组件

 

 然后在需要的页面,直接使用,

<common-vue></common-vue>

推荐阅读