main.js 999 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. console.log(11111111111111111111)
  2. console.log(156651325)
  3. //请求的根路径
  4. let $http= {
  5. // baseUrl:'https://69b89r4952.yicp.fun/',
  6. baseUrl: 'http://69b89r4952.yicp.fun/',
  7. // baseUrl:'http:localhost:2441/',
  8. // testToken: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxLUFETUlOIiwiZXhwIjoxNzQ0ODczMDU3fQ.nFyXamWDlUwpHlWb75BTV6e6eC0792A4pnBdGvY5IEk"
  9. testToken:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiIxLUFETUlOIiwiZXhwIjoxNzQ0ODczMDU3fQ.nFyXamWDlUwpHlWb75BTV6e6eC0792A4pnBdGvY5IEk"
  10. }
  11. uni.$http=$http
  12. import App from './App'
  13. import store from './store/store.js'
  14. import Vue from 'vue'
  15. // #ifndef VUE3
  16. import './uni.promisify.adaptor'
  17. Vue.config.productionTip = false
  18. App.mpType = 'app'
  19. const app = new Vue({
  20. ...App,
  21. store
  22. })
  23. app.$mount()
  24. // #endif
  25. // console.log(1111111111111111111111111)
  26. // #ifdef VUE3
  27. console.log(uni.$http,"uni.$http");
  28. import { createSSRApp } from 'vue'
  29. export function createApp() {
  30. const app = createSSRApp(App)
  31. return {
  32. app
  33. }
  34. }
  35. // #endif