如何通过表单控制倒计时开始时间,比如设定倒计时五分钟,循环几次,点击开始倒计时按钮,就让他从5分00秒,开始每秒减少,然后到0分00秒后,开始下一次循环,显示这是第几次循环

<template>
<div >
循环的次数:<input type="text" v-model="cishu"><br>
每次几分钟:<input type="text" v-model="timeone"><br>
<button>开始倒计时</button>
</div>
<div>
<div v-if="!finished">
第几次循环
{{ minutes }} 分, {{ seconds }} 秒
</div>
<div v-else>
输入错误
</div>
</div>
</template>
<script setup lang="ts">
import { ref, computed, onMounted } from 'vue';
const targetDate = new Date('2028 16:20:00').getTime();
const currentTime = ref(new Date().getTime());
const timeRemaining = ref(targetDate - currentTime.value);
const cishu= ref('5')
const timeone=ref('3')
onMounted(() => {
const interval = setInterval(() => {
currentTime.value = new Date().getTime();
timeRemaining.value = targetDate - currentTime.value;
}, 1000);
return () => clearInterval(interval);
});
const finished = computed(() => timeRemaining.value <= 0);
// const days = computed(() => Math.floor(timeRemaining.value / (1000 * 60 * 60 * 24)));
// const hours = computed(() => Math.floor((timeRemaining.value % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)));
const minutes = computed(() => Math.floor((timeRemaining.value % (1000 * 60 * 60)) / (1000 * 60)));
const seconds = computed(() => Math.floor((timeRemaining.value % (1000 * 60)) / 1000));
</script>