main.js 671 B

12345678910111213141516171819202122232425262728293031323334
  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. // const vConsole = new VConsole();
  9. // console.log('vConsole is running!');
  10. Vue.config.productionTip = false
  11. Vue.prototype.$time = time
  12. Vue.prototype.$store = store
  13. App.mpType = 'app'
  14. Vue.use(uView);
  15. const app = new Vue({
  16. ...App,
  17. store
  18. })
  19. app.$mount()
  20. // #endif
  21. // #ifdef VUE3
  22. import { createSSRApp } from 'vue'
  23. export function createApp() {
  24. const app = createSSRApp(App)
  25. return {
  26. app
  27. }
  28. }
  29. // #endif