main.js 812 B

123456789101112131415161718192021222324252627282930313233343536
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store' // store
  4. import plugins from './plugins' // plugins
  5. import './permission' // permission
  6. import xbutton from '@/components/xy-button' //自定义按钮组件
  7. import xpopup from '@/components/xy-popup' //自定义弹框组件
  8. import {
  9. checkPermi
  10. } from '@/utils/permission.js'
  11. import getdict from './utils/getDict.js'
  12. Vue.use(plugins)
  13. // 引入:uView-UI
  14. import uView from '@/uni_modules/uview-ui';
  15. Vue.use(uView);
  16. import share from './utils/share.js'
  17. Vue.mixin(share)
  18. Vue.component('xbutton', xbutton)
  19. Vue.component('xpopup', xpopup)
  20. Vue.prototype.getDict = getdict;
  21. Vue.prototype.$store = store
  22. Vue.prototype.checkPermi = checkPermi
  23. Vue.config.productionTip = false
  24. App.mpType = 'app'
  25. const app = new Vue({
  26. ...App
  27. })
  28. app.$mount()