jwyu 1 год назад
Родитель
Сommit
a25851258c
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      components/audioBox/audioBox.vue

+ 2 - 0
components/audioBox/audioBox.vue

@@ -55,6 +55,7 @@
 
 <script>
 import {apiViewLogUpdate} from '@/api/common'
+const logger = require('@/utils/log.js')
 export default {
     filters:{
         formatVoiceTime(e){
@@ -166,6 +167,7 @@ export default {
             })
             this.globalBgMusic.onError((e)=>{
                 console.log('音频onError',e);
+                logger.error('音频onError',e)
                 this.$store.commit('audio/removeAudio')
                 uni.showToast({
                     title: '音频播放错误',