You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
942 B
37 lines
942 B
6 years ago
|
import Vue from 'vue'
|
||
|
import App from './App.vue'
|
||
|
import router from './router/index'
|
||
|
import store from './store/index'
|
||
|
import lodash from 'lodash'
|
||
|
import {api, axios} from './api'
|
||
|
import dayjs from 'dayjs'
|
||
|
import util from './util/index'
|
||
|
import meta from 'vue-meta'
|
||
|
import cookies from 'vue-cookies'
|
||
|
import Element from 'element-ui'
|
||
|
import 'element-ui/lib/theme-chalk/index.css';
|
||
|
// 全局组件自动注册
|
||
|
import '@/components/autoRegister'
|
||
|
|
||
|
Vue.use(meta)
|
||
|
Vue.use(cookies)
|
||
|
Vue.use(util)
|
||
|
Vue.use(Element, {size: 'small', zIndex: 3000})
|
||
|
Vue.prototype.$api = api
|
||
|
Vue.prototype.$axios = axios
|
||
|
Vue.prototype._ = lodash
|
||
|
Vue.prototype.$dayjs = dayjs
|
||
|
|
||
|
Vue.config.productionTip = false
|
||
|
|
||
|
// 自动加载 svg 图标
|
||
|
const req = require.context('./assets/icons', false, /\.svg$/)
|
||
|
const requireAll = requireContext => requireContext.keys().map(requireContext)
|
||
|
requireAll(req)
|
||
|
|
||
|
new Vue({
|
||
|
router,
|
||
|
store,
|
||
|
render: h => h(App)
|
||
|
}).$mount('#app')
|