饭侠main.js
/**
* Created by wensonsmith on 2017/12/5.
*/
import Vue from 'vue'
import Axios from './src/service/axios'
import router from './src/router'
import store from './src/store'
import App from './app.vue'
import Icon from 'vue-svg-icon/Icon.vue'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import { ToastPlugin,WechatPlugin,LoadingPlugin,AlertPlugin } from 'vux'
Vue.use(VueAwesomeSwiper)
Vue.use(WechatPlugin)
Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)
Vue.use(AlertPlugin)
Vue.component('icon', Icon)
Vue.http = Vue.prototype.$http = Axios
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})