|
|
@@ -173,6 +173,12 @@ export default {
|
|
|
}
|
|
|
this.onFinishRecordWithMicrosoft();
|
|
|
} else {
|
|
|
+ const now = new Date();
|
|
|
+ const duration = (now - new Date(this.recordingEndTime)) / 1000;
|
|
|
+ if (duration < 5) {
|
|
|
+ this.$message.warning('录音时间至少间距5秒');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.onStartRecordWithMicrosoft();
|
|
|
}
|
|
|
},
|