mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix memo editor cache
This commit is contained in:
@ -349,6 +349,7 @@ const MemoEditor = (props: Props) => {
|
||||
toast.error(error.details);
|
||||
}
|
||||
|
||||
localStorage.removeItem(contentCacheKey);
|
||||
setState((state) => {
|
||||
return {
|
||||
...state,
|
||||
|
@ -66,6 +66,7 @@ const MemoDetail = () => {
|
||||
placeholder: t("editor.add-your-comment-here"),
|
||||
parentMemoName: memo.name,
|
||||
onConfirm: handleCommentCreated,
|
||||
cacheKey: `${memo.name}-${memo.updateTime}-comment`,
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user