main.js 412 B

1234567891011121314151617181920212223242526
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. Vue.config.productionTip = false
  5. //引入并使用uView的JS库
  6. import uView from '@/uni_modules/uview-ui'
  7. Vue.use(uView)
  8. App.mpType = 'app'
  9. const app = new Vue({
  10. ...App
  11. })
  12. app.$mount()
  13. // #endif
  14. // #ifdef VUE3
  15. import { createSSRApp } from 'vue'
  16. export function createApp() {
  17. const app = createSSRApp(App)
  18. return {
  19. app
  20. }
  21. }
  22. // #endif