main.js 624 B

1234567891011121314151617181920212223242526272829303132
  1. import App from './App'
  2. import common from '@/utils/common.js'
  3. Vue.prototype.$common =common
  4. import request from '@/utils/request.js'
  5. Vue.prototype.$http = request.http
  6. Vue.prototype.$request =request
  7. import store from './store'
  8. Vue.prototype.$store = store // 定义成全局组件
  9. // #ifndef VUE3
  10. import Vue from 'vue'
  11. Vue.config.productionTip = false
  12. App.mpType = 'app'
  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
  27. /* uni-transition 删除 uni_modules */