租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
584 B

6 months ago
  1. import App from './App'
  2. import uvUI from '@/uni_modules/uv-ui-tools'
  3. import { Request } from '@/util/request/index'
  4. // #ifndef VUE3
  5. import Vue from 'vue'
  6. import './uni.promisify.adaptor'
  7. Vue.config.productionTip = false
  8. App.mpType = 'app'
  9. import store from './store'
  10. Vue.prototype.$store = store
  11. import './config.js'
  12. import './utils/index.js'
  13. const app = new Vue({
  14. ...App,
  15. store,
  16. })
  17. app.$mount()
  18. Request(app)
  19. // #endif
  20. // #ifdef VUE3
  21. import {
  22. createSSRApp
  23. } from 'vue'
  24. export function createApp() {
  25. const app = createSSRApp(App)
  26. Request(app)
  27. return {
  28. app
  29. }
  30. }
  31. // #endif