1. 全局组件定义
import hgIndexNav from '@/components/hg-index-nav/hg-index-nav.vue';
Vue.component('hgIndexNav',hgIndexNav)
1. 全局方法定义
import utils from '@/utils/util.js'
Vue.mixin({
methods: {
getMiUnit(number){
return utils.getMiUnit(number)
}
}
})