修复[jeecgboot-vue3/issues/I5UMML] chatRef无此引用
parent
d6130b685d
commit
e036565709
|
@ -57,7 +57,6 @@
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
});
|
});
|
||||||
const chatRef = ref();
|
|
||||||
|
|
||||||
const [registerMessageModal, { openModal: openMessageModal }] = useModal();
|
const [registerMessageModal, { openModal: openMessageModal }] = useModal();
|
||||||
function clickBadge(){
|
function clickBadge(){
|
||||||
|
@ -96,7 +95,6 @@
|
||||||
//update-begin-author:taoyan date:2022-8-30 for: 消息数量改变触发chat组件事件
|
//update-begin-author:taoyan date:2022-8-30 for: 消息数量改变触发chat组件事件
|
||||||
let msgCount = anntMsgTotal+sysMsgTotal;
|
let msgCount = anntMsgTotal+sysMsgTotal;
|
||||||
//update-begin-author:wangshuai date:2022-09-02 for: 消息未读数为0也需要传递,因为聊天需要计算总数
|
//update-begin-author:wangshuai date:2022-09-02 for: 消息未读数为0也需要传递,因为聊天需要计算总数
|
||||||
chatRef.value.updateMessageCount(msgCount);
|
|
||||||
messageCount.value = msgCount
|
messageCount.value = msgCount
|
||||||
//update-end-author:wangshuai date:2022-09-02 for: 消息未读数为0也需要传递,因为聊天需要计算总数
|
//update-end-author:wangshuai date:2022-09-02 for: 消息未读数为0也需要传递,因为聊天需要计算总数
|
||||||
//update-end-author:taoyan date:2022-8-30 for: 消息数量改变触发chat组件事件
|
//update-end-author:taoyan date:2022-8-30 for: 消息数量改变触发chat组件事件
|
||||||
|
@ -164,12 +162,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取消息未读数
|
|
||||||
*/
|
|
||||||
function getSystemUnreadNum() {
|
|
||||||
chatRef.value.updateMessageCount(messageCount.value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
prefixCls,
|
prefixCls,
|
||||||
|
@ -184,8 +176,6 @@
|
||||||
popoverVisible,
|
popoverVisible,
|
||||||
registerDetail,
|
registerDetail,
|
||||||
dynamicNoticeProps,
|
dynamicNoticeProps,
|
||||||
chatRef,
|
|
||||||
getSystemUnreadNum
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue