国外MOSE官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
563 B

4 days ago
4 days ago
4 days ago
4 days ago
4 days ago
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. import * as api from '@/api'
  6. import utils from '@/utils'
  7. import store from '@/stores'
  8. // import vuex from 'vuex'
  9. Vue.config.productionTip = false
  10. // 将api挂载到Vue的原型
  11. Vue.prototype.$api = api
  12. Vue.prototype.$utils = utils
  13. App.mpType = 'app'
  14. const app = new Vue({
  15. ...App,
  16. store
  17. })
  18. app.$mount()
  19. // #endif
  20. // #ifdef VUE3
  21. import { createSSRApp } from 'vue'
  22. export function createApp() {
  23. const app = createSSRApp(App)
  24. return {
  25. app
  26. }
  27. }
  28. // #endif