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.

42 lines
747 B

4 months ago
1 month ago
1 month ago
1 week 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. import './uniWebview.js'
  7. // // #ifndef VUE3
  8. // import Vue from 'vue'
  9. // import './uni.promisify.adaptor'
  10. // Vue.config.productionTip = false
  11. // App.mpType = 'app'
  12. // const app = new Vue({
  13. // ...App
  14. // })
  15. // app.$mount()
  16. // // #endif
  17. // #ifdef VUE3
  18. import { createSSRApp } from 'vue'
  19. export function createApp() {
  20. const app = createSSRApp(App)
  21. app.config.globalProperties.$goPage = goPage
  22. app.config.globalProperties.$noDoFn = noDoFn
  23. app.use(uviewPlus)
  24. request(app)
  25. setupStore(app);
  26. return {
  27. app
  28. }
  29. }
  30. // #endif