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.

41 lines
722 B

4 months ago
1 month ago
1 month ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
1 month ago
1 month ago
4 months ago
1 month ago
  1. import App from './App'
  2. import uviewPlus from '@/uni_modules/uview-plus'
  3. import request from './config/request.js'
  4. import { goPage, noDoFn } from '@/utils/utils.js'
  5. import {setupStore} from '@/store';
  6. // // #ifndef VUE3
  7. // import Vue from 'vue'
  8. // import './uni.promisify.adaptor'
  9. // Vue.config.productionTip = false
  10. // App.mpType = 'app'
  11. // const app = new Vue({
  12. // ...App
  13. // })
  14. // app.$mount()
  15. // // #endif
  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.config.globalProperties.$noDoFn = noDoFn
  22. app.use(uviewPlus)
  23. request(app)
  24. setupStore(app);
  25. return {
  26. app
  27. }
  28. }
  29. // #endif