main.js 618 B

1234567891011121314151617181920212223242526272829
  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. //4ebed0e000a00dc4580b2d10861d4781 秘钥
  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.$http3 = request.http3
  13. Vue.prototype.$baseURL = request.baseURL
  14. const app = new Vue({
  15. ...App
  16. })
  17. app.$mount()
  18. // #endif
  19. // #ifdef VUE3
  20. import { createSSRApp } from 'vue'
  21. export function createApp() {
  22. const app = createSSRApp(App)
  23. return {
  24. app
  25. }
  26. }
  27. // #endif