Browse Source

添加录音结束按钮提示

SanHQin 2 days ago
parent
commit
747e0141bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/pages/workPage/components/questionsAndAnswers.vue

+ 1 - 1
src/components/pages/workPage/components/questionsAndAnswers.vue

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