main.js 531 B

123456789101112131415161718192021222324252627282930
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import tmVuetify from "./tm-vuetify";
  5. import point from '@/js/point.js'
  6. Vue.use(tmVuetify)
  7. Vue.prototype.$onLaunched = new Promise(resolve => {
  8. Vue.prototype.$isResolve = resolve
  9. })
  10. Vue.config.productionTip = false
  11. App.mpType = 'app'
  12. Vue.prototype.$point = point;
  13. const app = new Vue({
  14. ...App
  15. })
  16. app.$mount()
  17. // #endif
  18. // #ifdef VUE3
  19. import {
  20. createSSRApp
  21. } from 'vue'
  22. export function createApp() {
  23. const app = createSSRApp(App)
  24. return {
  25. app
  26. }
  27. }
  28. // #endif