main.js 576 B

12345678910111213141516171819202122232425262728
  1. import App from './App'
  2. import store from './store'
  3. import storage from './utils/storage.js'
  4. import Vue from 'vue'
  5. Vue.config.productionTip = false
  6. Vue.prototype.$storage = storage;
  7. App.mpType = 'app'
  8. // 引入全局TuniaoUI
  9. import TuniaoUI from 'tuniao-ui'
  10. Vue.use(TuniaoUI)
  11. // 引入TuniaoUI提供的vuex简写方法
  12. let vuexStore = require('@/store/$t.mixin.js')
  13. Vue.mixin(vuexStore)
  14. // 引入TuniaoUI对小程序分享的mixin封装
  15. let mpShare = require('tuniao-ui/libs/mixin/mpShare.js')
  16. Vue.mixin(mpShare)
  17. const app = new Vue({
  18. store,
  19. ...App
  20. })
  21. app.$mount()