|
@@ -149,7 +149,7 @@ export default {
|
|
|
stopRecord() {
|
|
stopRecord() {
|
|
|
console.log("测试测试")
|
|
console.log("测试测试")
|
|
|
if(new Date().getTime() - this.recordObj.startTime < 2000){
|
|
if(new Date().getTime() - this.recordObj.startTime < 2000){
|
|
|
- return console.log("稍等")
|
|
|
|
|
|
|
+ return this.$message.info("录音时间过短,请稍等...")
|
|
|
}
|
|
}
|
|
|
// 判断浏览器是否有开启录音权限
|
|
// 判断浏览器是否有开启录音权限
|
|
|
navigator.permissions && navigator.permissions.query({ name: 'microphone' }).then(permissionStatus => {
|
|
navigator.permissions && navigator.permissions.query({ name: 'microphone' }).then(permissionStatus => {
|