1
@@ -158,13 +158,18 @@ export default defineComponent({
};
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(() => {