main.js 979 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import App from './App'
  2. // #ifndef VUE3
  3. import Vue from 'vue'
  4. import uView from 'uview-ui'
  5. import store from './store/index.js'
  6. import tim from './config/tim/tim.js'
  7. import TIM from 'tim-js-sdk'
  8. import commen from './config/tim/commen.js'
  9. import format from './utils/format.js'
  10. import config from './config/config.js'
  11. import trtcCalling from './config/tim/trtc-calling.js'
  12. import TRTCCalling from 'trtc-calling-js'
  13. Vue.use(uView)
  14. Vue.prototype.config = config
  15. Vue.prototype.$store = store
  16. Vue.prototype.tim = tim.tim // tim sdk 引入后生成的tim服务
  17. Vue.prototype.$TIM = TIM
  18. Vue.prototype.$commen = commen
  19. Vue.prototype.$format = format
  20. Vue.prototype.trtcCalling = trtcCalling
  21. Vue.prototype.TRTCCalling = TRTCCalling
  22. Vue.config.productionTip = false
  23. App.mpType = 'app'
  24. const app = new Vue({
  25. ...App
  26. })
  27. app.$mount()
  28. // #endif
  29. // #ifdef VUE3
  30. import {
  31. createSSRApp
  32. } from 'vue'
  33. export function createApp() {
  34. const app = createSSRApp(App)
  35. return {
  36. app
  37. }
  38. }
  39. // #endif