智慧画屏客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
762 B

3 years ago
3 years ago
3 years ago
  1. import App from './App'
  2. // import music from '@/utils/music.js'
  3. // // 挂载到vue实例上
  4. // Vue.prototype.$music = music
  5. // Vue.prototype.ScanAudio = function(src) {
  6. // var music = null;
  7. // if(music){
  8. // music.destroy()
  9. // }
  10. // music = uni.createInnerAudioContext(); //创建播放器对象
  11. // music.src = src;
  12. // console.log("src",src)
  13. // music.play(); //执行播放
  14. // music.onEnded(() => {
  15. // //播放结束
  16. // music = null;
  17. // });
  18. // }
  19. // #ifndef VUE3
  20. import Vue from 'vue'
  21. Vue.config.productionTip = false
  22. App.mpType = 'app'
  23. const app = new Vue({
  24. ...App
  25. })
  26. app.$mount()
  27. // #endif
  28. // #ifdef VUE3
  29. import { createSSRApp } from 'vue'
  30. export function createApp() {
  31. const app = createSSRApp(App)
  32. return {
  33. app
  34. }
  35. }
  36. // #endif