呼唤远方
在main.js开头引入组件,然后注册组件,例如:import Vue from 'vue'import VueRouter from 'vue-router'import VueResource from 'vue-resource'import SixiButton from 'components/common/SixiButton'Vue.use(VueRouter)Vue.use(VueResource)Vue.component('six-button', SixiButton)