main.js 1018 B

123456789101112131415161718192021222324252627282930313233343536
  1. import Vue from 'vue'
  2. import store from './store'
  3. import App from './App'
  4. import './services/index.js'
  5. import{msg,modal,json,prePage} from '@/utils/util.js'
  6. import * as Api from '@/common/config/caimeiApi.js'
  7. import * as Regs from '@/common/config/common.js'
  8. import * as filters from '@/filters/filters.js'
  9. //注册全局过滤器
  10. Object.keys(filters).forEach(key => {
  11. Vue.filter(key, filters[key])
  12. })
  13. import cuCustom from './components/cu-custom.vue'
  14. import tuCustom from './components/tui-custom/tui-custom.vue'
  15. import boCustom from './components/tui-custom/bo-custom.vue'
  16. Vue.component('cu-custom',cuCustom)
  17. Vue.component('tu-custom',tuCustom)
  18. Vue.component('bo-custom',boCustom)
  19. Vue.config.productionTip = false
  20. Vue.prototype.$fire = new Vue()
  21. Vue.prototype.$store = store
  22. Vue.prototype.$util = {msg,modal,json, prePage}
  23. Vue.prototype.$api = Api
  24. Vue.prototype.$reg = Regs
  25. Vue.prototype.$Static = 'https://static.caimei365.com/app/img/'
  26. App.mpType = 'app'
  27. const app = new Vue({
  28. ...App
  29. })
  30. app.$mount()