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.

30 lines
611 B

4 months ago
3 months ago
4 months ago
4 months ago
2 months ago
2 months ago
2 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
  1. import App from './App'
  2. import uviewPlus from '@/uni_modules/uview-plus'
  3. // import request from './config/request.js'
  4. import { goPage } from '@/utils/utils.js'
  5. // // #ifndef VUE3
  6. // import Vue from 'vue'
  7. // import './uni.promisify.adaptor'
  8. // Vue.config.productionTip = false
  9. // App.mpType = 'app'
  10. // const app = new Vue({
  11. // ...App
  12. // })
  13. // app.$mount()
  14. // // #endif
  15. //
  16. // #ifdef VUE3
  17. import { createSSRApp } from 'vue'
  18. export function createApp() {
  19. const app = createSSRApp(App)
  20. app.config.globalProperties.$goPage = goPage
  21. app.use(uviewPlus)
  22. // request(app)
  23. return {
  24. app
  25. }
  26. }
  27. // #endif