zhoudw
2022-01-11 c0e42566062de9a13cefd5548d6f44ff2981d953
src/views/iframe/iframe.vue
@@ -152,7 +152,27 @@
                  });
                  wx.error(function(res){
                      _this.sendMsg({
                        action:'start',
                        action:'stop',
                        state:'fail',
                        data:{}
                      });
                  })
                  break;
                  case 'cleanup':
                  wx.stopRecord({
                    success: function (res) {
                      console.log(res,'清除录音成功');
                      _this.sendMsg({
                        action:'cleanup',
                        state:'ok',
                        data:{
                        }
                      });
                    }
                  });
                  wx.error(function(res){
                      _this.sendMsg({
                        action:'cleanup',
                        state:'fail',
                        data:{}
                      });