main.js 541 B

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