{"size": 1050, "ext": "js", "max_stars_repo_path": "src/main.js", "max_stars_repo_name": "tigerliu2016/vue-webpack-generators", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/main.js", "max_issues_repo_name": "tigerliu2016/vue-webpack-generators", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/main.js", "max_forks_repo_name": "tigerliu2016/vue-webpack-generators", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.1923076923, "max_line_length": 80, "alphanum_fraction": 0.7}
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Axios from './common/axios'
import store from './store'
import './common/rem'
import FastClick from 'fastclick'
import i18n from './locales'
/*vux 设置*/
/*import {
	AlertPlugin,
	ToastPlugin
} from 'vux'
Vue.use(AlertPlugin)
Vue.use(ToastPlugin)*/

Vue.config.productionTip = false
Vue.prototype.$http = Axios //ajax全局设置

/*loading处理*/
router.beforeEach(function(to, from, next) {
	store.commit('UPDATE_LOADING', {
		isLoading: true
	})
	next()
})
router.afterEach(function(to) {
	store.commit('UPDATE_LOADING', {
		isLoading: false
	})
})

/*fastclick 设置*/
if ('addEventListener' in document) {
	document.addEventListener('DOMContentLoaded', function() {
		FastClick.attach(document.body);
	}, false);
}

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	store,
	i18n,
	template: '<App/>',
	components: {
		App
	}
})