|
@@ -177,7 +177,9 @@ export default {
|
|
|
this.$message.error("请录音后在上传语音");
|
|
|
return;
|
|
|
}
|
|
|
- const mp3Blob = this.convertToMp3(recorder.getWAV());
|
|
|
+
|
|
|
+ const mp3Blob = recorder.getWAVBlob();
|
|
|
+ // const mp3Blob = this.convertToMp3(recorder.getWAV());
|
|
|
let audioFile = this.dataURLtoAudio(mp3Blob, "wav");
|
|
|
console.log(audioFile);
|
|
|
let iiframe = this.$refs['iiframe']
|