This commit is contained in:
2025-09-09 10:03:11 +08:00
parent ee849ba62a
commit f6afa97b2d
2 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<template v-if="item.meta" #title>
<svg-icon :icon-class="item.meta ? item.meta.icon : ''" />
<span class="menu-title" :title="hasTitle(item.meta?.title)">{{ item.meta?.title }}</span>
<span class="bage" v-if="item.meta?.title == '我的任务' && total > 0">{{ total }}</span>
<span class="bage" v-if="item.meta?.title == '我的任务' && total + totalChao > 0">{{ total + totalChao }}</span>
</template>
<sidebar-item
@ -61,6 +61,7 @@ const totalChao = ref(0);
onMounted(() => {
if (onlyOneChild.value.meta?.title == '我的待办' || props.item.meta?.title == '我的任务') {
getWaitingList();
getChaoList();
}
if (onlyOneChild.value.meta?.title == '我的抄送') {
getChaoList();