vue使用过程中遇到的一些问题
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)
}
}
export default recogCom;
4.在main.js中impo
原创
2020-08-27 21:06:30 ·
173 阅读 ·
0 评论