在你要使用插件的页面
import footerT from ‘@/components/footer/index.vue‘;//引入要使用的文件 import headerT from ‘@/components/header/index.vue‘; export default { components:{footerT,headerT}//注册插件名 }
vue-cli中 components插件的应用
原文:https://www.cnblogs.com/lipu12281/p/11837058.html