mirror of
https://github.com/fantasticit/think.git
synced 2026-10-30 22:56:06 +08:00
client: fix hook dep
This commit is contained in:
@@ -69,7 +69,7 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
|
||||
pathname: currentWikiId ? '/share/document/[documentId]' : '/share/wiki/[wikiId]/document/[documentId]',
|
||||
query: currentWikiId ? { documentId } : { wikiId: data.wikiId, documentId },
|
||||
});
|
||||
}, [currentWikiId, documentId, data.wikiId]);
|
||||
}, [currentWikiId, documentId, data]);
|
||||
|
||||
const content = useMemo(() => {
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user