client: fix edit link

This commit is contained in:
fantasticit 2022-06-30 19:21:31 +08:00
parent dc708ab825
commit 367046942a
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ const { Text } = Typography;
export const DocumentCard: React.FC<{ document: IDocument }> = ({ document }) => {
const gotoEdit = useCallback(() => {
Router.push(`/wiki/${document.wikiId}/document/${document.id}/edit`);
Router.push({
pathname: `/app/org/[organizationId]/wiki/[wikiId]/doc/[documentId]/edit`,
query: { organizationId: document.organizationId, wikiId: document.wikiId, documentId: document.id },
});
}, [document]);
return (