import Vue from 'vue'import App from './App.vue'import router from './router'import store from './store'
//这里是引入vant
import Vant from 'vant';import'vant/lib/index.css';
//这里是引入的element-ui
import ElementUI from 'element-ui';import'element-ui/lib/theme-chalk/index.css';
//这里是引入的axios
import axios from 'axios';
Vue.use(Vant);
Vue.use(ElementUI);
//这样做之后假如后期需要使用axios,直接this.$axios即可
Vue.prototype.$axios= axios
Vue.config.productionTip =false
new Vue({
router,
store,
render: h => h(App)}).$mount('#app')
在vue的main.js文件中这样配置import Vue from 'vue'import App from './App.vue'import router from './router'import store from './store'//这里是引入vantimport Vant from 'vant';import 'vant/lib/index.css';//这里是引入的element-uiimport ElementUI from 'element-ui';import