main.js 500 B

1234567891011121314151617181920212223242526272829303132
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import uView from "uview-ui";
  5. // vuex store
  6. import store from './store'
  7. import mixin from './utils/mixin'
  8. Vue.prototype.$store = store
  9. Vue.use(uView);
  10. Vue.mixin(mixin)
  11. Vue.config.productionTip = false
  12. App.mpType = 'app'
  13. const app = new Vue({
  14. store,
  15. ...App
  16. })
  17. app.$mount()
  18. // #endif
  19. // #ifdef VUE3
  20. import { createSSRApp } from 'vue'
  21. export function createApp() {
  22. const app = createSSRApp(App)
  23. return {
  24. app
  25. }
  26. }
  27. // #endif