main.js 870 B

12345678910111213141516171819202122232425262728293031
  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 cuCustom from './components/cu-custom.vue'
  9. import tuCustom from './components/tui-custom/tui-custom.vue'
  10. import boCustom from './components/tui-custom/bo-custom.vue'
  11. Vue.component('cu-custom',cuCustom)
  12. Vue.component('tu-custom',tuCustom)
  13. Vue.component('bo-custom',boCustom)
  14. Vue.config.productionTip = false
  15. Vue.prototype.$fire = new Vue()
  16. Vue.prototype.$store = store
  17. Vue.prototype.$util = {msg,modal,json, prePage}
  18. Vue.prototype.$api = Api
  19. Vue.prototype.$reg = Regs
  20. Vue.prototype.$Static = 'https://static.caimei365.com/app/img/'
  21. App.mpType = 'app'
  22. const app = new Vue({
  23. ...App
  24. })
  25. app.$mount()