|
@@ -12,10 +12,12 @@ export default {
|
|
|
duration: "00:00:00",
|
|
|
recordSecondCount: 0,
|
|
|
setT: null,
|
|
|
+ recoding: false,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
start() {
|
|
|
+ this.recoding = true;
|
|
|
this.setT = setInterval(() => {
|
|
|
this.recordSecondCount++;
|
|
|
this.duration = this.timeToText(this.recordSecondCount);
|
|
@@ -27,6 +29,7 @@ export default {
|
|
|
this.recordSecondCount = 0;
|
|
|
},
|
|
|
pause() {
|
|
|
+ this.recoding = false;
|
|
|
clearInterval(this.setT);
|
|
|
this.$emit("on-duration", this.recordSecondCount, this.duration);
|
|
|
},
|