huibing.xie | 1f1606f | 2018-08-20 15:46:55 +0800 | [diff] [blame] | 1 | import Vue from 'vue' |
| 2 | |
| 3 | import 'normalize.css/normalize.css'// A modern alternative to CSS resets |
| 4 | |
| 5 | import ElementUI from 'element-ui' |
| 6 | import 'element-ui/lib/theme-chalk/index.css' |
| 7 | import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n |
| 8 | |
| 9 | import '@/styles/index.scss' // global css |
| 10 | |
| 11 | import App from './App' |
| 12 | import router from './router' |
| 13 | import store from './store' |
| 14 | |
| 15 | import '@/icons' // icon |
| 16 | import '@/permission' // permission control |
| 17 | |
| 18 | import './mock' // 模拟数据 |
| 19 | // 富文本 |
| 20 | import '../static/ueditor/ueditor.config.js' |
| 21 | import '../static/ueditor/ueditor.all.min.js' |
| 22 | import '../static/ueditor/lang/zh-cn/zh-cn.js' |
| 23 | import '../static/ueditor/ueditor.parse.min.js' |
huibing.xie | 1718f36 | 2018-08-24 14:50:58 +0800 | [diff] [blame] | 24 | window.echarts = require('../static/echarts/echarts.min.js') |
huibing.xie | 1f1606f | 2018-08-20 15:46:55 +0800 | [diff] [blame] | 25 | |
| 26 | Vue.use(ElementUI, { locale }) |
| 27 | |
| 28 | Vue.config.productionTip = false |
| 29 | |
| 30 | new Vue({ |
| 31 | el: '#app', |
| 32 | router, |
| 33 | store, |
| 34 | render: h => h(App) |
| 35 | }) |