main.js 540 B

123456789101112131415161718192021222324252627
  1. import Vue from 'vue'
  2. import App from '@/App'
  3. import uniappApi from '@/common/uniapp.api.js'
  4. import filters from '@/common/filters.js'
  5. import crypto from '@/common/crypto.js'
  6. import storage from '@/common/storage.js'
  7. import globalMixin from '@/mixins/global.js'
  8. import store from '@/store/index.js'
  9. Vue.config.productionTip = false
  10. App.mpType = 'app'
  11. // 使用插件
  12. Vue.use(uniappApi)
  13. Vue.use(filters)
  14. Vue.use(crypto)
  15. Vue.use(storage)
  16. // 全局混入
  17. Vue.mixin(globalMixin)
  18. const app = new Vue({
  19. store,
  20. ...App
  21. })
  22. app.$mount()