zhoudw
2022-01-11 25b0b96005ed1f1fb91b0a0677ff01a7cc312869
src/views/iframe/iframe.vue
@@ -152,7 +152,29 @@
                  });
                  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:{
                          access_token:_this.access_token,
                          serverId:serverId
                        }
                      });
                    }
                  });
                  wx.error(function(res){
                      _this.sendMsg({
                        action:'cleanup',
                        state:'fail',
                        data:{}
                      });