main.js 595 B

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