import Vue from 'vue'
|
import App from './App2.vue'
|
import router from './router'
|
import store from './store'
|
// import registerDirectives from './directive'
|
import echarts from 'echarts'
|
import echartsDarkTheme from '@/styles/theme-dark/echarts/theme.json'
|
import ElementUI from 'element-ui'
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
Vue.config.productionTip = false
|
|
Vue.use(ElementUI, { size: 'small' })
|
// 注册指令
|
// registerDirectives(Vue)
|
|
// 注册echarts皮肤
|
echarts.registerTheme('dark', echartsDarkTheme)
|
|
// 开发环境下加载假数据
|
if (process.env.NODE_ENV === 'development') {
|
console.log('当前处于开发模式!')
|
}
|
|
window.vm = new Vue({
|
router,
|
store,
|
render: h => h(App),
|
}).$mount('#app')
|