main.js 487 B

123456789101112131415161718192021222324252627
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from '@/store'
  4. Vue.config.productionTip = false
  5. App.mpType = 'app'
  6. import uView from "uview-ui"
  7. Vue.use(uView)
  8. let vuexStore = require("@/store/$u.mixin.js")
  9. Vue.mixin(vuexStore)
  10. /*
  11. * 提示信息
  12. */
  13. Vue.prototype.toashMsg = function (title) {
  14. title = title == undefined ? "系统繁忙" : title;
  15. uni.showToast({
  16. title:title,
  17. icon:'none',
  18. duration: 2000
  19. })
  20. }
  21. const app = new Vue({
  22. store,
  23. ...App
  24. })
  25. app.$mount()