mirror of https://github.com/fantasticit/think.git
client: fix hook dep
This commit is contained in:
parent
6da1283c95
commit
2d477ba698
|
@ -69,7 +69,7 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
|
||||||
pathname: currentWikiId ? '/share/document/[documentId]' : '/share/wiki/[wikiId]/document/[documentId]',
|
pathname: currentWikiId ? '/share/document/[documentId]' : '/share/wiki/[wikiId]/document/[documentId]',
|
||||||
query: currentWikiId ? { documentId } : { wikiId: data.wikiId, documentId },
|
query: currentWikiId ? { documentId } : { wikiId: data.wikiId, documentId },
|
||||||
});
|
});
|
||||||
}, [currentWikiId, documentId, data.wikiId]);
|
}, [currentWikiId, documentId, data]);
|
||||||
|
|
||||||
const content = useMemo(() => {
|
const content = useMemo(() => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|
Loading…
Reference in New Issue