Commit 0657a1ef authored by Steven's avatar Steven

chore: fix memo editor cache

parent 48546f05
...@@ -349,6 +349,7 @@ const MemoEditor = (props: Props) => { ...@@ -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 = () => { ...@@ -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`,
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment