main.js 443 B

12345678910111213141516171819202122232425
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import './uni.promisify.adaptor'
  5. Vue.config.productionTip = false
  6. App.mpType = 'app'
  7. const app = new Vue({
  8. ...App
  9. })
  10. app.$mount()
  11. // #endif
  12. // #ifdef VUE3
  13. import { createSSRApp } from 'vue'
  14. import Antd from 'ant-design-vue';
  15. import 'ant-design-vue/dist/reset.css';
  16. export function createApp() {
  17. const app = createSSRApp(App)
  18. app.use(Antd)
  19. return {
  20. app
  21. }
  22. }
  23. // #endif