From e03656570949847e740d9ffe16b8c8e233a93ee8 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Sun, 9 Oct 2022 15:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D[jeecgboot-vue3/issues/I5UMML?= =?UTF-8?q?]=20chatRef=E6=97=A0=E6=AD=A4=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/default/header/components/notify/index.vue | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/layouts/default/header/components/notify/index.vue b/src/layouts/default/header/components/notify/index.vue index 34a2dac..45aed26 100644 --- a/src/layouts/default/header/components/notify/index.vue +++ b/src/layouts/default/header/components/notify/index.vue @@ -57,7 +57,6 @@ } return count; }); - const chatRef = ref(); const [registerMessageModal, { openModal: openMessageModal }] = useModal(); function clickBadge(){ @@ -96,7 +95,6 @@ //update-begin-author:taoyan date:2022-8-30 for: 消息数量改变触发chat组件事件 let msgCount = anntMsgTotal+sysMsgTotal; //update-begin-author:wangshuai date:2022-09-02 for: 消息未读数为0也需要传递,因为聊天需要计算总数 - chatRef.value.updateMessageCount(msgCount); messageCount.value = msgCount //update-end-author:wangshuai date:2022-09-02 for: 消息未读数为0也需要传递,因为聊天需要计算总数 //update-end-author:taoyan date:2022-8-30 for: 消息数量改变触发chat组件事件 @@ -164,12 +162,6 @@ } } - /** - * 获取消息未读数 - */ - function getSystemUnreadNum() { - chatRef.value.updateMessageCount(messageCount.value); - } return { prefixCls, @@ -184,8 +176,6 @@ popoverVisible, registerDetail, dynamicNoticeProps, - chatRef, - getSystemUnreadNum }; }, });