fe-drone-ci/src/main.js

33 lines
732 B
JavaScript
Raw Normal View History

2017-08-21 07:55:46 +00:00
import Vue from 'vue'
2017-11-01 02:03:28 +00:00
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
2017-11-03 10:37:49 +00:00
import i18n from './lang' // 国际化
2017-08-21 07:55:46 +00:00
import App from './App'
import router from './router'
import store from './store'
2017-08-30 10:22:32 +00:00
import * as filters from './filters' // 全局filter
import './icons' // icon
import './errorLog'// error log
import './permission' // 权限
2017-10-31 08:04:30 +00:00
import './mock' // 该项目所有请求使用mockjs模拟
2017-04-18 07:09:13 +00:00
2017-11-03 10:37:49 +00:00
Vue.use(Element, {
i18n: (key, value) => i18n.t(key, value)
})
2017-04-18 07:09:13 +00:00
// register global utility filters.
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
2017-08-21 07:55:46 +00:00
})
2017-07-06 09:56:17 +00:00
2017-08-21 07:55:46 +00:00
Vue.config.productionTip = false
2017-04-18 07:09:13 +00:00
new Vue({
2017-06-26 03:21:53 +00:00
el: '#app',
2017-04-18 07:09:13 +00:00
router,
store,
2017-11-03 10:37:49 +00:00
i18n,
2017-06-26 03:21:53 +00:00
template: '<App/>',
components: { App }
})