mirror of
https://github.com/usememos/memos.git
synced 2024-09-20 22:46:16 +08:00
chore: fix memo editor cache
This commit is contained in:
parent
48546f05b3
commit
0657a1ef5b
|
@ -349,6 +349,7 @@ const MemoEditor = (props: Props) => {
|
||||||
toast.error(error.details);
|
toast.error(error.details);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
localStorage.removeItem(contentCacheKey);
|
||||||
setState((state) => {
|
setState((state) => {
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
|
|
|
@ -66,6 +66,7 @@ const MemoDetail = () => {
|
||||||
placeholder: t("editor.add-your-comment-here"),
|
placeholder: t("editor.add-your-comment-here"),
|
||||||
parentMemoName: memo.name,
|
parentMemoName: memo.name,
|
||||||
onConfirm: handleCommentCreated,
|
onConfirm: handleCommentCreated,
|
||||||
|
cacheKey: `${memo.name}-${memo.updateTime}-comment`,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue