vue-learn/src/main.js

20 lines
465 B
JavaScript
Raw Normal View History

2020-06-16 02:20:06 +00:00
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
2020-06-16 02:44:52 +00:00
import './assets/fonts/iconfont.css'
2020-06-16 02:20:06 +00:00
import './assets/css/globel.css'
2020-06-16 07:08:01 +00:00
import axios from 'axios'
2020-06-16 02:20:06 +00:00
2020-06-16 07:08:01 +00:00
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/'
Vue.prototype.$http = axios
2020-06-16 02:20:06 +00:00
Vue.use(ElementUI)
2020-06-16 07:08:01 +00:00
2020-06-16 02:20:06 +00:00
Vue.config.productionTip = false
new Vue({
router,
render: h => h(App)
}).$mount('#app')