fix(component): updated at in page meta (#2277)

This commit is contained in:
Himself65
2023-05-09 11:54:07 +08:00
committed by GitHub
parent 53db6a6e9d
commit 793b689b81
3 changed files with 25 additions and 2 deletions

View File

@@ -81,6 +81,9 @@ export const PageDetailEditor: React.FC<PageDetailEditorProps> = ({
startTransition(() => {
setEditor(editor);
});
page.workspace.setPageMeta(page.id, {
updatedDate: Date.now(),
});
onLoad?.(page, editor);
},
[onLoad, setEditor]