chore: add pretty

This commit is contained in:
lencx
2023-01-22 18:18:36 +08:00
parent 1ba356a91f
commit bc39dcdd72
56 changed files with 776 additions and 535 deletions

View File

@@ -46,8 +46,8 @@ export default function Notes() {
message.success('Name has been changed!');
}
opInfo.resetRecord();
})()
}, [opInfo.opType])
})();
}, [opInfo.opType]);
const handleDelete = async () => {
if (opData?.length === selectedRows.length) {
@@ -62,7 +62,7 @@ export default function Notes() {
const file = await path.join(await chatRoot(), 'notes', `${i?.id}.${i?.ext}`);
await fs.removeFile(file);
return file;
})
});
Promise.all(rows).then(async () => {
await handleRefresh();
message.success('All files selected are cleared!');
@@ -122,5 +122,5 @@ export default function Notes() {
<Markdown children={source} />
</Modal>
</div>
)
}
);
}