// ie polyfill import '@babel/polyfill' import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store/' import api from './api' import VCharts from 'v-charts' // Global Components import { STable, UploadImage } from '@/components' import bootstrap from './core/bootstrap' // import './core/use' import './core/lazy_use' // 开启组件按需加载 import './permission' // permission control import './utils/filter' // global filter // import './mock/myMock' import constv from './config/constv' // process.env.NODE_ENV === 'development' && require('./mock/myMock.js') Vue.config.devtools = true Vue.config.productionTip = false Vue.prototype.constv = constv // mount axios and this.$http Vue.use(api) Vue.use(VCharts) Vue.prototype.VchartColor = [ '#5AB1EF', '#FF9900', '#d71345', '#9955FF', '#FF4040', '#d48265', '#91c7ae', '#0066FF', '#749f83', '#ca8622', '#bda29a', '#6e7074', '#444444', '#FF8888', '#99FFFF', '#EEEE00', '#FFB3FF', '#BB5500', '#33FF33', '#77DDFF', '#546570', '#c4ccd3' ] Vue.component('upload-image', UploadImage) Vue.component('s-table', STable) window.__log = log => { if (process.env.NODE_ENV === 'development') { console.log(log, new Date()) } } new Vue({ router, store, created () { bootstrap() }, render: h => h(App) }).$mount('#app')