main.js 596 B

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