main.js 365 B

12345678910111213141516171819202122232425
  1. import App from './App'
  2. import Vue from 'vue'
  3. import uView from '@/uni_modules/uview-ui'
  4. import './uni.promisify.adaptor'
  5. Vue.use(uView)
  6. Vue.config.productionTip = false
  7. App.mpType = 'app'
  8. const app = new Vue({
  9. ...App
  10. })
  11. app.$mount()
  12. import { createSSRApp } from 'vue'
  13. export function createApp() {
  14. const app = createSSRApp(App)
  15. return {
  16. app
  17. }
  18. }