You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tanghe-report/report-ui/src/main.js

38 lines
912 B
JavaScript

3 years ago
import Vue from 'vue'
// element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import 'normalize.css/normalize.css'// A modern alternative to CSS resets
import '@/assets/styles/common.css'
import '@/assets/styles/index.scss'// custome global css
// app router vuex filter mixins
import App from './App'
import router from './router'
import store from './store'
import * as filter from './filter'
import mixins from '@/mixins'
// permission control
import '@/permission'
import '@/extend'
// enable element zh-cn
Vue.use(ElementUI, { zhLocale })
// register global filter.
Object.keys(filter).forEach(key => {
Vue.filter(key, filter[key])
})
// register global mixins.
Vue.mixin(mixins)
Vue.config.productionTip = false
// create the app instance.
new Vue({ el: '#app', router, store, render: h => h(App) })