1. vue导入组件问题 步骤 1.创建Vue文件,export 中写组件的名称 2.创建index.js文件 import当前创建的vue文件 3. index.js中书写 import recog from './recog.vue' const recogCom = { install: function(Vue) { Vue.component('recog', recog)