const filterCommandList = computed(() => {
timerList.value.forEach((item) => clearInterval(item));
timerList.value = [];
let data = repeatReminderList.value;
return data.map((row) => {
row.close = false;
row.lastTime = 0;
row.countDown = null;
countdown(row);
return row;
});
});
watch(
() => filterCommandList.value,
(newval, oldval) => {
console.log(`ReminderTimerQueue >> 当前循环队列: `, newval);
}
);
watch(repeatReminderList.value, (val) => {
debugger;
if (val.length > 0) {
repeatReminderList.value.map((row) => {
row.countDown = null;
countdown(row);
});
}
});
标签:watch,value,newval,vue3,repeatReminderList,row
From: https://www.cnblogs.com/lbx6935/p/17848470.html