main.js 403 B

1234567891011121314151617181920212223
  1. import Vue from 'vue'
  2. import App from './App'
  3. Vue.config.productionTip = false
  4. App.mpType = 'app'
  5. // 引入全局uView
  6. import uView from 'uview-ui'
  7. Vue.use(uView);
  8. const app = new Vue({
  9. ...App
  10. })
  11. //拦截器
  12. import httpInterceptor from '@/common/http.interceptor.js'
  13. Vue.use(httpInterceptor, app)
  14. //API集中管理
  15. import httpApi from '@/common/http.api.js'
  16. Vue.use(httpApi, app)
  17. app.$mount()