main.js 614 B

1234567891011121314151617181920212223242526272829
  1. import App from './App'
  2. import { toast, transDictLabel, changeDictAttrName, getDictList } from './common/common.js'
  3. Vue.prototype.toast = toast
  4. Vue.prototype.transDictLabel = transDictLabel
  5. Vue.prototype.changeDictAttrName = changeDictAttrName
  6. Vue.prototype.getDictList = getDictList
  7. // #ifndef VUE3
  8. import Vue from 'vue'
  9. import './uni.promisify.adaptor'
  10. Vue.config.productionTip = false
  11. App.mpType = 'app'
  12. const app = new Vue({
  13. ...App
  14. })
  15. app.$mount()
  16. // #endif
  17. // #ifdef VUE3
  18. import { createSSRApp } from 'vue'
  19. export function createApp() {
  20. const app = createSSRApp(App)
  21. return {
  22. app
  23. }
  24. }
  25. // #endif