import Vue from 'vue';
|
import ElementUI from 'element-ui';
|
import 'element-ui/lib/theme-chalk/index.css';
|
import App from './App.vue';
|
//路由配置
|
import router from "./router/router";
|
//引入Avue
|
import Avue from '@smallwei/avue';
|
import '@smallwei/avue/lib/index.css';
|
import axios from 'axios'//引入axios
|
import VueAxios from 'vue-axios'
|
Vue.prototype.$axios = axios;//把axios挂载到vue上
|
|
Vue.config.productionTip = false
|
Vue.use(ElementUI);
|
Vue.use(Avue);
|
|
router.beforeEach((to,from,next) =>{
|
if(to.meta.title){
|
document.title = to.meta.title
|
}
|
next();
|
})
|
|
new Vue({
|
render: h => h(App),
|
router,
|
}).$mount('#app')
|