index.js 730 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import Vue from 'vue'
  2. import router from './router'
  3. import store from './store'
  4. // import { sync } from 'vuex-router-sync'
  5. import Meta from 'vue-meta'
  6. import InfiniteLoading from 'vue-infinite-loading'
  7. import App from './App'
  8. import 'assets/css/mdi/css/materialdesignicons.css'
  9. // import 'mdi/font'
  10. import 'assets/css/app.scss'
  11. Vue.use(Meta)
  12. Vue.use(InfiniteLoading, {
  13. props: {
  14. spinner: 'spiral'
  15. },
  16. slots: {
  17. noMore: '',
  18. noResult: ''
  19. },
  20. system: {
  21. throttleLimit: 5000
  22. }
  23. // system: {
  24. // throttleLimit: 50,
  25. // /* other settings need to configure */
  26. // }
  27. })
  28. // sync(store, router) // done. Returns an unsync callback fn
  29. new Vue({
  30. router,
  31. store,
  32. render: h => h(App)
  33. }).$mount('#app')