优化
This commit is contained in:
@ -57,7 +57,9 @@ const props = defineProps({
|
||||
});
|
||||
const total = ref(0);
|
||||
onMounted(() => {
|
||||
if (onlyOneChild.value.meta?.title == '我的待办') {
|
||||
if (onlyOneChild.value.meta?.title == '我的待办' || props.item.meta?.title == '我的任务') {
|
||||
console.log(44444444);
|
||||
|
||||
getWaitingList();
|
||||
}
|
||||
});
|
||||
@ -123,7 +125,8 @@ watch(
|
||||
() => noticeStore.state.value.notices,
|
||||
(newVal) => {
|
||||
if (onlyOneChild.value.meta?.title == '我的待办') {
|
||||
// 延迟1秒
|
||||
console.log(121212121);
|
||||
|
||||
let time = setTimeout(() => {
|
||||
getWaitingList();
|
||||
clearTimeout(time);
|
||||
|
Reference in New Issue
Block a user