在main.js中,引用需要全局的组件 然后在需要的页面,直接使用, <common-vue></common-vue> 转载于:https://www.cnblogs.com/summerXll/p/9548467.html