welfare-admin/src/main.js

40 lines
1.0 KiB
JavaScript
Raw Normal View History

2021-08-11 15:44:50 +08:00
// with polyfills
import 'core-js/stable'
import 'regenerator-runtime/runtime'
2021-08-09 17:28:48 +08:00
import Vue from 'vue'
import App from './App.vue'
import router from './router'
2021-08-11 15:44:50 +08:00
import store from './store/'
import i18n from './locales'
import { VueAxios } from './utils/request'
import ProLayout, { PageHeaderWrapper } from '@ant-design-vue/pro-layout'
import themePluginConfig from '../config/themePluginConfig'
// mock
// WARNING: `mockjs` NOT SUPPORT `IE` PLEASE DO NOT USE IN `production` ENV.
import './mock'
2021-08-09 17:28:48 +08:00
2021-08-11 15:44:50 +08:00
import bootstrap from './core/bootstrap'
import './core/lazy_use'
import './permission' // permission control
import './utils/filter' // global filter
import './global.less'
2021-08-09 17:28:48 +08:00
Vue.config.productionTip = false
2021-08-11 15:44:50 +08:00
// mount axios to `Vue.$http` and `this.$http`
Vue.use(VueAxios)
Vue.component('pro-layout', ProLayout)
Vue.component('page-header-wrapper', PageHeaderWrapper)
window.umi_plugin_ant_themeVar = themePluginConfig.theme
2021-08-09 17:28:48 +08:00
new Vue({
router,
store,
2021-08-11 15:44:50 +08:00
i18n,
created: bootstrap,
2021-08-09 17:28:48 +08:00
render: h => h(App)
}).$mount('#app')