main.js 441 B

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