main.ts 472 B

123456789101112131415161718192021222324
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './router'
  4. import store from './store'
  5. import axios from './utils/axios';
  6. import api from './api/index';
  7. Vue.prototype.$axios = axios;
  8. Vue.prototype.$api = api;
  9. Vue.config.productionTip = false
  10. import { Button ,Loading} from 'element-ui';
  11. Vue.use(Button);
  12. //Vue.use(Loading.directive);
  13. Vue.prototype.$loading = Loading.service;
  14. new Vue({
  15. router,
  16. store,
  17. render: h => h(App)
  18. }).$mount('#app')