main.js 461 B

12345678910111213141516171819202122232425
  1. import App from './App'
  2. import Vue from 'vue'
  3. import './uni.promisify.adaptor'
  4. import uView from "uview-ui";
  5. import WebIM from './newSDK/Easemob-chat.js'
  6. import {conn} from './utils/WebIM';
  7. Vue.use(uView);
  8. Vue.config.productionTip = false
  9. App.mpType = 'app'
  10. const app = new Vue({
  11. WebIM,
  12. ...App
  13. })
  14. app.$mount()
  15. // #ifdef VUE3
  16. import { createSSRApp } from 'vue'
  17. export function createApp() {
  18. const app = createSSRApp(App)
  19. return {
  20. app
  21. }
  22. }
  23. // #endif