main.js 814 B

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