|
|
@@ -147,8 +147,8 @@ export default {
|
|
|
|
|
|
},
|
|
|
stopRecord() {
|
|
|
- console.log()
|
|
|
- if(this.recordObj.startTime!==0 && new Date().getTime() - this.recordObj.startTime < 2000){
|
|
|
+ console.log("测试测试")
|
|
|
+ if(new Date().getTime() - this.recordObj.startTime < 2000){
|
|
|
return console.log("稍等")
|
|
|
}
|
|
|
// 判断浏览器是否有开启录音权限
|
|
|
@@ -164,8 +164,10 @@ export default {
|
|
|
this.$message.success("未开启录音权限,已停止录音");
|
|
|
return;
|
|
|
}
|
|
|
+ console.log("测试测试222")
|
|
|
// 有权限再判断状态
|
|
|
if(this.recordObj.status=='1' && !this.recordObj.loading){
|
|
|
+ console.log("测试测3333")
|
|
|
let iframe = this.$refs["iframeRef"];
|
|
|
this.recordObj.loading = true;
|
|
|
iframe.contentWindow.window.document
|
|
|
@@ -180,6 +182,7 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
+ console.log("测试测4444试")
|
|
|
// 浏览器不支持或异常,默认直接停止
|
|
|
this.recordObj.status = "0";
|
|
|
this.recordObj.loading = false;
|