重构代码.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user