mirror of https://github.com/fantasticit/think.git
client: fix edit link
This commit is contained in:
parent
dc708ab825
commit
367046942a
|
@ -15,7 +15,10 @@ const { Text } = Typography;
|
||||||
|
|
||||||
export const DocumentCard: React.FC<{ document: IDocument }> = ({ document }) => {
|
export const DocumentCard: React.FC<{ document: IDocument }> = ({ document }) => {
|
||||||
const gotoEdit = useCallback(() => {
|
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]);
|
}, [document]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue