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:{} });