welfare-admin/src/main.js

35 lines
860 B
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'
2021-08-19 09:01:06 +08:00
// import themePluginConfig from '../config/themePluginConfig'
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'
2021-08-19 09:01:06 +08:00
import './permission'
2021-08-11 15:44:50 +08:00
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
Vue.use(VueAxios)
Vue.component('pro-layout', ProLayout)
Vue.component('page-header-wrapper', PageHeaderWrapper)
2021-08-19 09:01:06 +08:00
// window.umi_plugin_ant_themeVar = themePluginConfig.theme
2021-08-11 15:44:50 +08:00
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')