main.js 368 B

123456789101112131415161718192021222324
  1. import App from './App'
  2. import uView from "uview-ui";
  3. Vue.use(uView);
  4. // #ifndef VUE3
  5. import Vue from 'vue'
  6. Vue.config.productionTip = false
  7. App.mpType = 'app'
  8. const app = new Vue({
  9. ...App
  10. })
  11. app.$mount()
  12. // #endif
  13. // #ifdef VUE3
  14. import { createSSRApp } from 'vue'
  15. export function createApp() {
  16. const app = createSSRApp(App)
  17. return {
  18. app
  19. }
  20. }
  21. // #endif