main.js 425 B

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