frp/web/src/main.js

28 lines
556 B
JavaScript
Raw Normal View History

2017-03-27 02:15:31 +08:00
import Vue from 'vue'
2020-12-04 01:08:40 +08:00
import ElementUI from 'element-ui'
2018-05-16 02:51:02 +08:00
import lang from 'element-ui/lib/locale/lang/en'
import locale from 'element-ui/lib/locale'
import 'element-ui/lib/theme-chalk/index.css'
2020-12-04 01:08:40 +08:00
import '@/icons'
import '@/styles/index.scss'
2017-03-27 02:15:31 +08:00
import App from './App.vue'
import router from './router'
2020-11-23 17:24:43 +08:00
import store from '@/store'
2017-03-28 01:08:04 +08:00
import 'whatwg-fetch'
2017-03-27 02:15:31 +08:00
2018-05-16 02:51:02 +08:00
locale.use(lang)
2020-12-04 01:08:40 +08:00
Vue.use(ElementUI)
2020-11-23 17:24:43 +08:00
import fetch from '@/utils/fetch'
Vue.prototype.$fetch = fetch
2018-05-16 02:51:02 +08:00
2017-03-27 02:15:31 +08:00
Vue.config.productionTip = false
new Vue({
2020-11-23 15:26:56 +08:00
router,
2020-11-23 17:24:43 +08:00
store,
2020-11-23 15:26:56 +08:00
render: h => h(App)
}).$mount('#app')