重构代码.

This commit is contained in:
lijiahangmax
2023-09-24 23:28:02 +08:00
parent 6fa57c616c
commit 024a8b4596
21 changed files with 48 additions and 38 deletions

View File

@@ -82,7 +82,7 @@
async function readMessage(data: MessageListType) {
const ids = data.map((item) => item.id);
await setMessageStatus({ ids });
fetchSourceData();
await fetchSourceData();
}
const renderList = computed(() => {
@@ -101,6 +101,7 @@
};
const formatUnreadLength = (type: string) => {
const list = getUnreadList(type);
// FIXME
return list.length ? `(${list.length})` : ``;
};
const handleItemClick = (items: MessageListType) => {