|
@@ -801,6 +801,7 @@ export default {
|
|
|
//录音计时
|
|
|
clockTime() {
|
|
|
console.log("开始录音计时");
|
|
|
+ if(this.timer) return
|
|
|
this.timer = setInterval(() => {
|
|
|
if (this.timer) {
|
|
|
this.audioCount += 30;
|
|
@@ -812,7 +813,8 @@ export default {
|
|
|
//清除录音计时
|
|
|
cleanTime() {
|
|
|
console.log("结束录音计时");
|
|
|
- clearTimeout(this.timer);
|
|
|
+ clearInterval(this.timer);
|
|
|
+ this.timer=null
|
|
|
this.playIconKey++; //更新录音暂停播放图标
|
|
|
//this.audioTime = this.dayjs(this.audioCount).format("mm:ss.SS");
|
|
|
},
|