mirror of
https://github.com/usememos/memos.git
synced 2025-01-01 10:01:54 +08:00
chore: fix memo editor cache
This commit is contained in:
parent
48546f05b3
commit
0657a1ef5b
2 changed files with 2 additions and 0 deletions
|
@ -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`,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue