@@ -157,13 +157,18 @@ export default defineComponent({
}, 600);
};
const onReset = () => {
- suspendNum();
- count.value = 0;
- soundVIdeo.currentTime = 0;
- soundVIdeo.pause();
- setTimeout(() => {
+ if( isPlaying.value ){
+ suspendNum();
+ count.value = 0;
+ soundVIdeo.currentTime = 0;
+ soundVIdeo.pause();
+ setTimeout(()=>{
+ init();
+ },600)
+ }else {
init();
- }, 600);
+ }
+
onMounted(() => {
nextTick(() => {