main.js 582 B

12345678910111213141516171819202122232425262728
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. Vue.config.productionTip = false
  6. App.mpType = 'app'
  7. //4ebed0e-000a00dc4580b-2d10861-d4781 m钥
  8. import request from 'utils/request.js'
  9. Vue.prototype.$http = request.http
  10. Vue.prototype.$ajax = request.ajax
  11. Vue.prototype.$http2 = request.http2
  12. Vue.prototype.$baseURL = request.baseURL
  13. const app = new Vue({
  14. ...App
  15. })
  16. app.$mount()
  17. // #endif
  18. // #ifdef VUE3
  19. import { createSSRApp } from 'vue'
  20. export function createApp() {
  21. const app = createSSRApp(App)
  22. return {
  23. app
  24. }
  25. }
  26. // #endif