组织成员邀请等新消息没有在消息图标上体现

This commit is contained in:
付民康
2025-03-28 18:29:54 +08:00
parent d9c3abc3b7
commit d60f8241c8

View File

@@ -7,7 +7,7 @@
</template>
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount,computed } from 'vue';
import { ref, onMounted, onBeforeUnmount,computed,watch } from 'vue';
import { getMessageCount } from '@/api/notice';
import { addEventListener, offEvent } from '@/utils/eventBus';
import debounce from 'lodash/debounce';
@@ -24,7 +24,7 @@ const getCounts = () => {
};
const totalUnreadCount = computed(() => {
return (accountInfo.value.noticeUnreadNum || 0) + (accountInfo.value.inviteNum || 0)
return (accountInfo.value.data.noticeUnreadNum || 0) + (accountInfo.value.data.inviteNum || 0)
})
onMounted(() => {