main.js 365 B

1234567891011121314151617181920212223242526
  1. import Vue from 'vue'
  2. import App from './App'
  3. // 引入全局uView
  4. import uView from '@/uni_modules/uview-ui'
  5. // vuex
  6. import store from './store'
  7. Vue.config.productionTip = false
  8. Vue.prototype.$store = store
  9. App.mpType = 'app'
  10. Vue.use(uView)
  11. const app = new Vue({
  12. store,
  13. ...App
  14. })
  15. // 引入请求封装
  16. require('./utils/request/index')(app)
  17. app.$mount()