main.js 567 B

1234567891011121314151617181920212223242526272829303132333435
  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 {
  7. conn
  8. } from './utils/WebIM';
  9. Vue.use(uView);
  10. Vue.config.productionTip = false
  11. Vue.prototype.$openimage = function(urls, index) {
  12. uni.previewImage({
  13. urls: urls,
  14. current: index
  15. })
  16. }
  17. App.mpType = 'app'
  18. const app = new Vue({
  19. WebIM,
  20. ...App
  21. })
  22. app.$mount()
  23. // #ifdef VUE3
  24. import {
  25. createSSRApp
  26. } from 'vue'
  27. export function createApp() {
  28. const app = createSSRApp(App)
  29. return {
  30. app
  31. }
  32. }
  33. // #endif