import babelpolyfill from 'babel-polyfill'
// import Vue from 'vue'
import App from './App'
// import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/common.less'
// import '../theme/index.css'
import store from './vuex'
import Vuex from 'vuex'
import {router} from './router'
import './common/axiosSetting'
// import echarts from 'echarts'
// import 'font-awesome/css/font-awesome.min.css'
// Vue.use(ElementUI)
// Vue.use(VueRouter)
Vue.use(Vuex)
// const router = new VueRouter({
//   routes
// })
// router.beforeEach((to, from, next) => {
// 	//NProgress.start();
// 	console.log(to)
//   if (to.path == '/login') {
//     sessionStorage.removeItem('user');
//   }
//   let user = JSON.parse(sessionStorage.getItem('user'));
//   if (!user && to.path != '/login') {
//     next({ path: '/login' })
//   } else {
//     next()
//   }
// })
window.log = message => console.log(message)
new Vue({
  el: '#app',
  template: '<App/>',
  router,
  store,
  components: { App },
  // render: h => h(App)
})

