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.

30 lines
490 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. import App from './App'
  2. import uView from 'uview-ui'
  3. Vue.use(uView)
  4. import Expands from '@/common/expands/index.js'
  5. Vue.use(Expands)
  6. import store from '@/store/index.js'
  7. // #ifndef VUE3
  8. import Vue from 'vue'
  9. Vue.config.productionTip = false
  10. App.mpType = 'app'
  11. const app = new Vue({
  12. ...App,
  13. store
  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