重构代码.

This commit is contained in:
lijiahangmax
2023-09-25 00:07:51 +08:00
parent 024a8b4596
commit f8cc8c4233
16 changed files with 18 additions and 17 deletions

View File

@@ -101,8 +101,7 @@
};
const formatUnreadLength = (type: string) => {
const list = getUnreadList(type);
// FIXME
return list.length ? `(${list.length})` : ``;
return list.length ? `(${list.length})` : '';
};
const handleItemClick = (items: MessageListType) => {
if (renderList.value.length) readMessage([...items]);