main.js 701 B

1234567891011121314151617181920212223242526272829303132333435
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import time from '@/commit/item.js';
  5. import store from '@/store/index.js'
  6. import uView from '@/uni_modules/uview-ui';
  7. import Vconsole from "vconsole"
  8. // import VConsole from 'vconsole'
  9. const vConsole = new Vconsole();
  10. // console.log('vConsole is running!');
  11. Vue.config.productionTip = false
  12. Vue.prototype.$time = time
  13. Vue.prototype.$store = store
  14. App.mpType = 'app'
  15. Vue.use(uView);
  16. const app = new Vue({
  17. ...App,
  18. store
  19. })
  20. app.$mount()
  21. // #endif
  22. // #ifdef VUE3
  23. import { createSSRApp } from 'vue'
  24. export function createApp() {
  25. const app = createSSRApp(App)
  26. return {
  27. app
  28. }
  29. }
  30. // #endif