main.js 663 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store/index';
  4. Vue.prototype.$store = store;
  5. //配置
  6. import config from './config.js'
  7. Vue.prototype.$conf = config
  8. Vue.prototype.$msg = (title, duration=1500, mask=false, icon='none')=>{
  9. //统一提示方便全局修改
  10. if(Boolean(title) === false){
  11. return;
  12. }
  13. uni.showToast({
  14. title,
  15. duration,
  16. mask,
  17. icon
  18. });
  19. }
  20. import api from './common/vmeitime-http/index.js'
  21. Vue.prototype.$api = api
  22. import appupgrade from './common/appupgrade.js'
  23. Vue.prototype.$appUpgrade = appupgrade
  24. Vue.config.productionTip = false
  25. App.mpType = 'app'
  26. const app = new Vue({
  27. ...App
  28. })
  29. app.$mount()