You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
837 B

3 years ago
  1. import Vue from 'vue'
  2. import App from './App'
  3. import config from './config'
  4. import store from './store'
  5. import {
  6. msg,
  7. isLogin,
  8. debounce,
  9. throttle,
  10. prePage,
  11. date
  12. } from '@/common/js/util'
  13. import filter from './common/filter/filter'
  14. import mixin from './common/mixin/mixin'
  15. Vue.mixin(mixin)
  16. Vue.prototype.$store = store
  17. Vue.prototype.$config = config
  18. Vue.prototype.$util = {
  19. msg,
  20. isLogin,
  21. debounce,
  22. throttle,
  23. prePage,
  24. date
  25. }
  26. // 注册全局组件
  27. import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
  28. import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
  29. Vue.component('mescroll-body', MescrollBody)
  30. Vue.component('mescroll-uni', MescrollUni)
  31. Vue.config.productionTip = false
  32. App.mpType = 'app'
  33. const app = new Vue({
  34. ...App
  35. })
  36. app.$mount()