chore: fix memo editor cache

This commit is contained in:
Steven 2024-06-01 08:48:54 +08:00
parent 48546f05b3
commit 0657a1ef5b
2 changed files with 2 additions and 0 deletions

View file

@ -349,6 +349,7 @@ const MemoEditor = (props: Props) => {
toast.error(error.details);
}
localStorage.removeItem(contentCacheKey);
setState((state) => {
return {
...state,

View file

@ -66,6 +66,7 @@ const MemoDetail = () => {
placeholder: t("editor.add-your-comment-here"),
parentMemoName: memo.name,
onConfirm: handleCommentCreated,
cacheKey: `${memo.name}-${memo.updateTime}-comment`,
});
};